cli-support: Fix copy-pasted error message

This error case is for an invalid free function, not an invalid constructor.
This commit is contained in:
Nick Fitzgerald 2019-07-10 12:49:44 -07:00
parent 21fe8dc706
commit f2a4694c69

View File

@ -2060,7 +2060,7 @@ impl<'a> Context<'a> {
ast::WebidlFunctionKind::Static => {
let js = match val {
AuxValue::Bare(js) => self.import_name(js)?,
_ => bail!("invalid import set for constructor"),
_ => bail!("invalid import set for free function"),
};
Ok(format!("{}({})", js, variadic_args(&args)?))
}