Skip to content

Commit 6d08701

Browse files
committed
don't unset a variable before using it in an error message
1 parent 8c47c69 commit 6d08701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trunk/nuv_export/ui.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,13 +428,13 @@ package nuv_export::ui;
428428
}
429429
# Make sure this is a valid directory
430430
elsif (!-d $path) {
431-
$path = undef;
432431
print "$path exists, but is not a directory.\n";
432+
$path = undef;
433433
}
434434
# Not writable
435435
elsif (!-w $path) {
436-
$path = undef;
437436
print "$path isn't writable.\n";
437+
$path = undef;
438438
}
439439
}
440440
return $path;

0 commit comments

Comments
 (0)