From c6de85045736a859fa976cd9a8584508b5d90f59 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 2 Jun 2025 19:51:23 -0400 Subject: [PATCH] Log the exception when failing to a load a shader from SHPK --- parts/shpk/shpkpart.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/parts/shpk/shpkpart.cpp b/parts/shpk/shpkpart.cpp index 9839050..a1e98e6 100644 --- a/parts/shpk/shpkpart.cpp +++ b/parts/shpk/shpkpart.cpp @@ -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" \ No newline at end of file +#include "moc_shpkpart.cpp"