Merge pull request 'fix some bug when there are bugs but build finish' (#4) from fix_bug_01 into main

Reviewed-on: https://external.feng-arch.cn:35127/fengqi/asm_parser/pulls/4
This commit is contained in:
fengqi 2024-10-30 09:45:11 +00:00
commit 4728cf9651

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;
}