[nostalgia/studio] Make open tab errors print file and line
This commit is contained in:
parent
267f8eca67
commit
d457d9688c
@ -316,10 +316,11 @@ void MainWindow::openProject(QString projectPath) {
|
|||||||
try {
|
try {
|
||||||
openFile(t, true);
|
openFile(t, true);
|
||||||
} catch (ox::Error err) {
|
} catch (ox::Error err) {
|
||||||
qInfo() << "Error opening tab:" << static_cast<int>(err);
|
qInfo().nospace() << "Error opening tab: " << t << ", " << static_cast<int>(err) << ", " << err.file << ":" << err.line;
|
||||||
oxTrace("nostalgia::studio::MainWindow::openProject") << "Error opening tab:" << static_cast<int>(err);
|
oxTrace("nostalgia::studio::MainWindow::openProject") << "Error opening tab:" << static_cast<int>(err)
|
||||||
|
<< ", " << static_cast<int>(err) << ", " << err.file << ":" << err.line;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
qInfo() << "Error opening tab";
|
qInfo() << "Error opening tab: " << t;
|
||||||
oxTrace("nostalgia::studio::MainWindow::openProject") << "Error opening tab";
|
oxTrace("nostalgia::studio::MainWindow::openProject") << "Error opening tab";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user