duspeccoll / alma_integrations

API calls to push metadata from ArchivesSpace to the Alma API
18 stars 6 forks source link

throw a human-readable error if no Resource is selected for search #4

Closed jackflaps closed 5 years ago

jackflaps commented 5 years ago

Current behavior: nilClass error, the dreaded "We're sorry, but something went wrong" message

Desired behavior: kick back to the plugin home page w/ a flash error -- something like "Error: No Resource selected for search"

duspeccoll commented 5 years ago

resolved by https://github.com/duspeccoll/alma_integrations/commit/e75312a15cedea6575ce1d1f6363c3f93c29c147