When a client exports book records in XML format and disconnects before the request can be completed, an error occurs and an email is sent to @adolski.
Changes:
In BooksController.index() a rescue block was added so that if the Client is disconnected, the error message will be saved to the logs. This should prevent the trigger that sends an email with the error.
I tested this in development by starting the Rails server, beginning the xml exportand then stopping the download before it could finish.
When doing so the expected message was displayed in my terminal, and no other errors were raised
This PR addresses issue 41:
When a client exports book records in XML format and disconnects before the request can be completed, an error occurs and an email is sent to @adolski.
Changes:
In
BooksController.index()
arescue block
was added so that if the Client is disconnected, the error message will be saved to the logs. This should prevent the trigger that sends an email with the error.I tested this in development by starting the
Rails server,
beginning thexml export
and thenstopping the download
before it could finish.When doing so the expected message was displayed in my terminal, and no other errors were raised