Skip to content

Commit 6aa2d3a

Browse files
bwtnatario1
andauthored
Log errors when writing the image to a file (#960)
Co-authored-by: Mattia Iavarone <mat.iavarone@gmail.com>
1 parent 40ace54 commit 6aa2d3a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cameraview/src/main/java/com/otaliastudios/cameraview/CameraUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public static File writeToFile(@NonNull final byte[] data, @NonNull File file) {
9494
stream.flush();
9595
return file;
9696
} catch (IOException e) {
97+
LOG.e("writeToFile:", "could not write file.", e);
9798
return null;
9899
}
99100
}

0 commit comments

Comments
 (0)