rubydora icon indicating copy to clipboard operation
rubydora copied to clipboard

Catch 500 errors on ingest

Open jcoyne opened this issue 14 years ago • 1 comments

When calling RestApiClient#ingest we get an error: "500 Internal Server Error"

debugging indicates the server is giving this message: The PID 'hydrangea:fixture_mods_article1' already exists in the registry; the object can't be re-created.

But it just raises a 500 exception up to the application level. We can probably throw something more helpful.

jcoyne avatar Oct 14 '11 00:10 jcoyne

Agreed. There are likely a number of Fedora errors that Rubydora could rethrow better.

cbeer avatar Oct 14 '11 02:10 cbeer