mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Improved errors
This commit is contained in:
parent
a69217e296
commit
d3bfc731ef
4 changed files with 63 additions and 3 deletions
|
@ -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: ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue