Skip to content
Browse files

make error messages on un-implemented lines more clear

  • Loading branch information...
1 parent 7ae3730 commit 9a204eb051d0430a710fb85c93929a47fd0e5af4 @ericbmerritt ericbmerritt committed Oct 13, 2011
Showing with 4 additions and 2 deletions.
  1. +1 −1 src/cucumberl.app.src
  2. +3 −1 src/cucumberl.erl
View
2 src/cucumberl.app.src
@@ -1,7 +1,7 @@
{application, cucumberl,
[
{description, "A pure-erlang implementation of Cucumber."},
- {vsn, "0.0.4"},
+ {vsn, "0.0.5"},
{applications, [
kernel,
stdlib
View
4 src/cucumberl.erl
@@ -107,7 +107,9 @@ process_line({Type, LineNum, Tokens, Line},
catch
error:function_clause ->
%% we don't have a matching function clause
- undefined;
+ io:format("~nSTEP ~s is *not* implemented: ~p ~n",
+ [Line, Tokens]),
+ {failed, {unimplemented, Tokens}};
Err:Reason ->
io:format("~nSTEP: ~s FAILED: ~n ~p:~p ~p~n",
[Line, Err, Reason,

0 comments on commit 9a204eb

Please sign in to comment.
Something went wrong with that request. Please try again.