Improve missing parameter panic message (#79)
Returning an InternalError in a map() is hard, so just panic, but give a decent error message.
This commit is contained in:
parent
22a97b3e86
commit
ff2ca9b30c
@ -265,7 +265,7 @@ impl<'a> Recipe<'a> {
|
|||||||
} else if let Some(ref default) = parameter.default {
|
} else if let Some(ref default) = parameter.default {
|
||||||
(parameter.name, default.as_str())
|
(parameter.name, default.as_str())
|
||||||
} else {
|
} else {
|
||||||
panic!(); // FIXME internal error
|
panic!("Recipe.run: missing parameter without default. This is a bug in just.");
|
||||||
}).collect();
|
}).collect();
|
||||||
|
|
||||||
let mut evaluator = Evaluator {
|
let mut evaluator = Evaluator {
|
||||||
|
Loading…
Reference in New Issue
Block a user