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:
jeb228 2010-10-07 15:57:43 +00:00
parent 30344c4af9
commit 14faa42143

View file

@ -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 {