Permalink
Browse files

here too

  • Loading branch information...
1 parent 147c8cf commit 6b6c4b4625273240edb29cf95b186c9ce2e4763b Thomas Heller committed Jan 18, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/zview_scanner.erl
View
@@ -60,10 +60,14 @@
%% @end
%%--------------------------------------------------------------------
scan(Template) ->
- {ok, Scan} = scan(Template, [], {1, 1}, in_text),
- Cleaned = cleanup(Scan, []),
- {ok, Cleaned}.
+ case scan(Template, [], {1, 1}, in_text) of
+ {ok, Scan} ->
+ Cleaned = cleanup(Scan, []),
+ {ok, Cleaned};
+ {error, Reason} ->
+ {error, Reason}
+ end.
cleanup([], Result) ->
lists:reverse(Result);

0 comments on commit 6b6c4b4

Please sign in to comment.