mirror of
https://github.com/redstrate/Novus.git
synced 2025-06-07 05:37:45 +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);
|
pageTabWidget->addTab(shaderTextEdit, name);
|
||||||
} catch (const std::exception &exception) {
|
} catch (const std::exception &exception) {
|
||||||
// TODO: display the error
|
qWarning() << "Failed to load shader:" << exception.what();
|
||||||
Q_UNUSED(exception)
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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