fix some bug when there are bugs but build finish

This commit is contained in:
feng-arch 2024-10-30 17:44:50 +08:00
parent 8803df0b88
commit 2345dc7627

View File

@ -41,7 +41,7 @@ int main(int argc, char **argv) {
}
program_bin[instr_count] = bin;
instr_count++;
} else if (ret == 3) {
} else {
printf("Error on line %d: %s\n", i + 1, line);
return i + 1;
}