Permalink
Browse files

[Druid::Game] s/fail/return/

Caught by tests 19 and 20 in the test suite.
  • Loading branch information...
1 parent af3946e commit b92eff31f5a675bb19e43fbb46bd62ec35c86e74 @masak committed Apr 4, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Druid/Game.pm
View
@@ -48,7 +48,7 @@ class Druid::Game is Druid::Base does Druid::Game::Subject {
}
when $.swap {
- fail 'Swap is only allowed on second move'
+ return 'Swap is only allowed on second move'
if $!moves-so-far != 1;
}

0 comments on commit b92eff3

Please sign in to comment.