Skip to content

Commit 2422fc3

Browse files
arkottkeCopilot
andcommitted
Fix fatal message output to include context information and abort execution
Co-authored-by: Copilot <[email protected]>
1 parent d964aec commit 2422fc3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext &context,
6363
break;
6464
case QtFatalMsg:
6565
fprintf(stderr, "Fatal: %s (%s:%u, %s)\n", localMsg.constData(),
66-
context.file, con abort();
66+
context.file, context.line, context.function);
67+
abort();
6768
}
6869
}
6970

0 commit comments

Comments
 (0)