Skip to content

Commit

Permalink
add additional error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Feb 6, 2024
1 parent d06241e commit 227bec9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/uploadController.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class UploadController extends PageController {
this.validationError('apiError', 'Nothing returned from the api', null, req)
}
} catch (error) {
logger.error('Error uploading file', error)
if (error.code === 'ECONNREFUSED') {
this.validationError('apiError', 'Unable to reach the api', error, req)
} else {
Expand Down

0 comments on commit 227bec9

Please sign in to comment.