Skip to content

Commit

Permalink
Merge pull request JakeWharton#55 from NightlyNexus/fix-typo-mkdirs
Browse files Browse the repository at this point in the history
Log directory creation failure, not success
  • Loading branch information
JakeWharton committed Jun 19, 2015
2 parents 6c35364 + 3575954 commit 546c2e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private RecordingInfo getRecordingInfo() {
private void startRecording() {
Timber.d("Starting screen recording...");

if (outputRoot.mkdirs()) {
if (!outputRoot.mkdirs()) {
Timber.e("Unable to create output directory '%s'.", outputRoot.getAbsolutePath());
// We're probably about to crash, but at least the log will indicate as to why.
}
Expand Down

0 comments on commit 546c2e5

Please sign in to comment.