Permalink
Browse files

proper report if no file in example jsontree

  • Loading branch information...
1 parent c835984 commit 203072d5ca6fd664c652aec9e5116fbc470ae14a @NotFound committed Nov 8, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 examples/jsontree.winxed
View
4 examples/jsontree.winxed
@@ -182,6 +182,10 @@ function main(args)
// Simplified way of getting command line args
args.shift();
+ if (elements(args) < 1) {
+ cry("No file");
+ exit(1);
+ }
:(string filename, string markbegin[optional], string markend[optional]) =
function (a) { return a:[flat]; } (args);

0 comments on commit 203072d

Please sign in to comment.