Skip to content

Commit

Permalink
Bail out with an error message when target is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
hinrik committed Jun 26, 2009
1 parent 8b83721 commit b8799f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@
0.06
- Add -l/--only option to print the path to the target file
- Bail out with an error message when target is unknown

0.05 Fri Jun 26 05:48:02 GMT 2009
- Fix location of shared files (synopses)
Expand Down
2 changes: 2 additions & 0 deletions lib/App/Grok.pm
Expand Up @@ -29,6 +29,8 @@ sub run {
($target, $renderer) = find_target($ARGV[0]);
}

die "No matching files found for target '$target'" if !-e $target;

if ($opt{only}) {
print "$target\n";
}
Expand Down

0 comments on commit b8799f2

Please sign in to comment.