Skip to content

Commit

Permalink
More understandable error message for value definition of parameters
Browse files Browse the repository at this point in the history
extracted from path [fixes #138]
  • Loading branch information
ph2734 committed Mar 23, 2012
1 parent 59855de commit 10260c0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -174,7 +174,7 @@ object Router {
if (p.fixed.isDefined || p.default.isDefined) {
throw RoutesCompilationError(
file,
"Cannot define fixed or default value for path extracted parameter " + name,
"It is not allowed to specify a fixed or default value for parameter: '" + name + "' extracted from the path",
Some(p.pos.line),
Some(p.pos.column))
}
Expand Down

0 comments on commit 10260c0

Please sign in to comment.