1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00

Improved errors

This commit is contained in:
Brian Fiete 2020-07-13 09:55:16 -07:00 committed by James Orson
parent 27956f396a
commit e7181d1746
4 changed files with 63 additions and 3 deletions

View file

@ -291,6 +291,13 @@ void BeIRCodeGen::FatalError(const StringImpl& err)
{
BeDumpContext dumpCtx;
if (mActiveFunction != NULL)
{
failStr += "Function: ";
failStr += mActiveFunction->mName;
failStr += "\n";
}
if (mBeModule->mCurDbgLoc != NULL)
{
failStr += "DbgLoc: ";