From d457d9688cde679dcd39bc2d0e78370f26b607b8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 30 Mar 2020 20:50:51 -0500 Subject: [PATCH] [nostalgia/studio] Make open tab errors print file and line --- src/nostalgia/studio/mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/nostalgia/studio/mainwindow.cpp b/src/nostalgia/studio/mainwindow.cpp index a526dcc3..7310d2ea 100644 --- a/src/nostalgia/studio/mainwindow.cpp +++ b/src/nostalgia/studio/mainwindow.cpp @@ -316,10 +316,11 @@ void MainWindow::openProject(QString projectPath) { try { openFile(t, true); } catch (ox::Error err) { - qInfo() << "Error opening tab:" << static_cast(err); - oxTrace("nostalgia::studio::MainWindow::openProject") << "Error opening tab:" << static_cast(err); + qInfo().nospace() << "Error opening tab: " << t << ", " << static_cast(err) << ", " << err.file << ":" << err.line; + oxTrace("nostalgia::studio::MainWindow::openProject") << "Error opening tab:" << static_cast(err) + << ", " << static_cast(err) << ", " << err.file << ":" << err.line; } catch (...) { - qInfo() << "Error opening tab"; + qInfo() << "Error opening tab: " << t; oxTrace("nostalgia::studio::MainWindow::openProject") << "Error opening tab"; } }