1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Improved errors

This commit is contained in:
Brian Fiete 2020-07-13 09:55:16 -07:00
parent a69217e296
commit d3bfc731ef
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: ";