Skip to content

Commit

Permalink
Get holdeptool to handle lexer exceptions better (see ffab9eb)
Browse files Browse the repository at this point in the history
  • Loading branch information
mn200 committed Mar 13, 2018
1 parent 61cbf43 commit a07fdf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/Holmake/holdeptool.sml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ fun main() = let
end
val results =
case CommandLine.arguments() of
[] => stream_deps ("<stdin>", TextIO.stdIn)
[] => (stream_deps ("<stdin>", TextIO.stdIn)
handle LEX_ERROR s => diewith("Lexical error: " ^ s)
| e => diewith ("Exception: "^General.exnMessage e))
| ["-h"] => usage ok
| [fname] => (reader_deps (fname, QFRead.fileToReader fname)
handle LEX_ERROR s => diewith("Lexical error: " ^ s)
Expand Down

0 comments on commit a07fdf6

Please sign in to comment.