Skip to content

Commit

Permalink
REST: Fix typo in an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Jun 10, 2015
1 parent d46c8c4 commit f7da20d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/vibe/web/rest.d
Original file line number Diff line number Diff line change
Expand Up @@ -1191,11 +1191,11 @@ body {
// typeof(PN) is void when length is 0.
static if (!PN.length) {
if (hack)
return "%s: Path contains '%s', but not parameter '_%s' defined."
return "%s: Path contains '%s', but no parameter '_%s' defined."
.format(FuncId, elem, elem[1..$]);
} else {
if (![PN].canFind("_"~elem[1..$]))
return "%s: Path contains '%s', but not parameter '_%s' defined."
return "%s: Path contains '%s', but no parameter '_%s' defined."
.format(FuncId, elem, elem[1..$]);
elem = elem[1..$];
}
Expand Down Expand Up @@ -1265,7 +1265,7 @@ unittest {

// Issue 949
unittest {
enum msg = "Path contains ':owner', but not parameter '_owner' defined.";
enum msg = "Path contains ':owner', but no parameter '_owner' defined.";

@path("/repos/")
interface IGithubPR {
Expand Down

0 comments on commit f7da20d

Please sign in to comment.