Commit 4b0e7e91 authored by Albert Gräf's avatar Albert Gräf
Browse files

Merge branch 'declare-error-reporting' into release_2.15.0

parents edb1b9e1 adf329a8
......@@ -2237,7 +2237,14 @@ void canvas_declare(t_canvas *x, t_symbol *s, int argc, t_atom *argv)
canvas_stdlib(e, atom_getsymbolarg(i+1, argc, argv)->s_name);
i++;
}
else post("declare: %s: unknown declaration", flag);
// ag: Handle the case of an unrecognized option argument (presumably
// a float).
else if (!*flag) {
post("declare: %g: unknown argument", atom_getfloatarg(i, argc, argv));
}
else {
post("declare: %s: unknown declaration", flag);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment