mirror of https://github.com/rwf2/Rocket.git
Clean-up method parsing error.
This commit is contained in:
parent
a6cd1bd5bd
commit
7544af6e6d
|
@ -164,7 +164,7 @@ fn parse_method(ecx: &ExtCtxt, meta_item: &NestedMetaItem) -> Spanned<Method> {
|
||||||
return span(method, word.span());
|
return span(method, word.span());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let msg = format!("{} is not a valid HTTP method.", word.name());
|
let msg = format!("'{}' is not a valid HTTP method.", word.name());
|
||||||
ecx.span_err(word.span(), &msg);
|
ecx.span_err(word.span(), &msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue