NIHVIVO-1013 Merge 5482 from the branch.
This commit is contained in:
parent
b92982dcc0
commit
d277692365
1 changed files with 4 additions and 1 deletions
|
@ -223,6 +223,9 @@ public class ImageUploadHelper {
|
|||
} catch (IOException e) {
|
||||
throw new IllegalStateException("Can't read image file: "
|
||||
+ fileInfo, e);
|
||||
} catch (Exception e) {
|
||||
throw new UserMistakeException("Sorry, we were unable to process "
|
||||
+ "the photo you provided. Please try another photo.");
|
||||
} finally {
|
||||
if (source != null) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue