diff --git a/qt/scientific_interfaces/Indirect/IndirectFittingModel.cpp b/qt/scientific_interfaces/Indirect/IndirectFittingModel.cpp
index b994f79507e6312dc8c53bfd0bf35a51261e746c..28316e1e68d2be816e7dc8fb99ebdec909facfcd 100644
--- a/qt/scientific_interfaces/Indirect/IndirectFittingModel.cpp
+++ b/qt/scientific_interfaces/Indirect/IndirectFittingModel.cpp
@@ -553,7 +553,11 @@ void IndirectFittingModel::addWorkspace(const std::string &workspaceName,
   if (workspaceName.empty() || !doesExistInADS(workspaceName))
     throw std::runtime_error("A valid sample file needs to be selected.");
 
-  addWorkspace(workspaceName, Spectra(spectra));
+  try {
+    addWorkspace(workspaceName, Spectra(spectra));
+  } catch (std::logic_error &e) {
+    throw std::runtime_error(e.what());
+  }
 }
 
 void IndirectFittingModel::addWorkspace(const std::string &workspaceName,