Skip to content

Commit

Permalink
added better error message if local file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Mar 18, 2024
1 parent 08cee4b commit feaf6b0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -118,6 +119,8 @@ public String store(String path, InputStream data) {
} else {
logger.warn("Failed to write file {} to disk - no permissions.", folder + path);
}
} catch (FileNotFoundException ex) {
logger.error("File {} not found.", folder + path);
} catch (IOException e) {
logger.error(null, e);
} finally {
Expand Down

0 comments on commit feaf6b0

Please sign in to comment.