Report a call to an unknown task as an error, not an internal error.

This error can certainly be triggered by invalid user code - see
issue #419.
This commit is contained in:
Martin Whitaker 2020-12-13 22:12:02 +00:00
parent fbd87b4fee
commit f8c49469fa
1 changed files with 1 additions and 1 deletions

View File

@ -3788,7 +3788,7 @@ NetProc* PCallTask::elaborate_method_(Design*des, NetScope*scope,
if (const netclass_t*class_type = net->class_type()) {
NetScope*task = class_type->method_from_name(method_name);
if (task == 0) {
cerr << get_fileline() << ": internal error: "
cerr << get_fileline() << ": error: "
<< "Can't find task " << method_name
<< " in class " << class_type->get_name() << endl;
des->errors += 1;