Skip to content
Browse files

[bin/crypt] consistenter exception message

More consistent with the other exceptions, that is.
  • Loading branch information...
1 parent 7dfc3a4 commit 7d02b685a1cb635f58e90e4e8681ada7929c987e @masak committed Jul 4, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/crypt
View
5 bin/crypt
@@ -241,7 +241,7 @@ class X::Adventure::NoSuchDirection is X::Adventure {
has $.direction;
method message {
- qq[Cannot $.action: direction "$.direction" does not exist]
+ "Cannot $.action because direction '$.direction' does not exist"
}
}
@@ -479,7 +479,8 @@ multi MAIN('test') {
is .action, 'connect rooms', '.action attribute';
is .direction, $direction, '.direction attribute';
is .message,
- 'Cannot connect rooms: direction "oops" does not exist',
+ "Cannot connect rooms because direction "
+ ~ "'$direction' does not exist",
'.message attribute';
};
}

0 comments on commit 7d02b68

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