Merge 6096 from the branch: NIHVIVO-1199 If there is an unexpected exception in image processing, write it to the log.
This commit is contained in:
parent
30344c4af9
commit
14faa42143
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ public class ImageUploadHelper {
|
|||
} catch (UserMistakeException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
log.warn("Unexpected exception in image handling", e);
|
||||
throw new UserMistakeException("Sorry, we were unable to process "
|
||||
+ "the photo you provided. Please try another photo.");
|
||||
} finally {
|
||||
|
|
Loading…
Add table
Reference in a new issue