mirror of https://github.com/rwf2/Rocket.git
Replace 'above' with 'below' in route parse error message.
This commit is contained in:
parent
defb0e2942
commit
ae83e06565
|
@ -41,7 +41,7 @@ impl RouteParams {
|
||||||
-> RouteParams {
|
-> RouteParams {
|
||||||
let function = Function::from(annotated).unwrap_or_else(|item_sp| {
|
let function = Function::from(annotated).unwrap_or_else(|item_sp| {
|
||||||
ecx.span_err(sp, "this attribute can only be used on functions...");
|
ecx.span_err(sp, "this attribute can only be used on functions...");
|
||||||
ecx.span_fatal(item_sp, "...but was applied to the item above.");
|
ecx.span_fatal(item_sp, "...but was applied to the item below.");
|
||||||
});
|
});
|
||||||
|
|
||||||
let meta_items = meta_item.meta_item_list().unwrap_or_else(|| {
|
let meta_items = meta_item.meta_item_list().unwrap_or_else(|| {
|
||||||
|
|
Loading…
Reference in New Issue