mirror of
https://github.com/redstrate/Novus.git
synced 2025-06-06 13:17:46 +00:00
Log the exception when failing to a load a shader from SHPK
This commit is contained in:
parent
1516db591f
commit
c6de850457
1 changed files with 2 additions and 3 deletions
|
@ -51,8 +51,7 @@ void SHPKPart::load(physis_Buffer buffer)
|
|||
|
||||
pageTabWidget->addTab(shaderTextEdit, name);
|
||||
} catch (const std::exception &exception) {
|
||||
// TODO: display the error
|
||||
Q_UNUSED(exception)
|
||||
qWarning() << "Failed to load shader:" << exception.what();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -65,4 +64,4 @@ void SHPKPart::load(physis_Buffer buffer)
|
|||
}
|
||||
}
|
||||
|
||||
#include "moc_shpkpart.cpp"
|
||||
#include "moc_shpkpart.cpp"
|
||||
|
|
Loading…
Add table
Reference in a new issue