error handling when attempting to save MARC record with invalid tag could be friendlier
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
When attempting to save a bib record that contains an invalid tag number (e.g., "65="), the Evergreen staff client displays an error message like this:
Error creating MARC record.
DATABASE_
The attempt to query to the DB failed
The error originates from a data validity check in MARC::Record as invoked by one of the database triggers invoked when a row is inserted into biblio.
- the MARC editor doesn't highlight the offending tag number
- the error message doesn't make it clear that the problem has to do with the user input
Potential ways to improve this:
- do a bit more client-side validation
- pass a bit more information up the line
Evergreen master
tags: | removed: webstaffclient wishlist |
tags: | added: error-handling |
Still an issue in the webclient, only the error is simply "Could not save the record!" which, while marginally more friendly than DATABASE_ QUERY_FAILED, is not as nice as Galen's suggested approaches.