Permalink
Browse files

Slightly more helpful error message.

  • Loading branch information...
1 parent 9f5b494 commit 3137d3648b9eac063a874c32740c67aca26c6211 @aslakhellesoy aslakhellesoy committed Mar 30, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 rails_generators/cucumber/templates/paths.rb
@@ -8,7 +8,8 @@ def path_to(page_name)
# Add more page name => path mappings here
else
- raise "Can't find mapping from \"#{page_name}\" to a path."
+ raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
+ "Now, go and add a mapping in features/support/paths.rb"
end
end
end

0 comments on commit 3137d36

Please sign in to comment.