refactor(dev): unify compiler error logging

This commit is contained in:
Lane0218
2026-03-11 21:25:07 +08:00
parent f9fde30d12
commit 9070775187
5 changed files with 81 additions and 28 deletions

View File

@@ -52,7 +52,7 @@ int main(int argc, char** argv) {
mir::PrintAsm(*machine_func, std::cout);
}
} catch (const std::exception& ex) {
std::cerr << "error: " << ex.what() << "\n";
PrintException(std::cerr, ex);
return 1;
}
return 0;