From d7d13f3277c705b7c4f66e92c088236c9922ad90 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Fri, 3 Dec 2021 17:04:20 +0100 Subject: [PATCH] user readable error message --- Sample/Scattering/IFormFactor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Sample/Scattering/IFormFactor.cpp b/Sample/Scattering/IFormFactor.cpp index 3236a227183..d61b678dcea 100644 --- a/Sample/Scattering/IFormFactor.cpp +++ b/Sample/Scattering/IFormFactor.cpp @@ -66,9 +66,8 @@ IFormFactor* IFormFactor::createSlicedFormFactor(ZLimits limits, const IRotation return nullptr; if (canSliceAnalytically(rot)) return sliceFormFactor(limits, rot, translation); - throw std::runtime_error(className() - + "::createSlicedFormFactor error: not supported for " - "the given rotation!"); + throw std::runtime_error( + "Slicing of " + className() + " not supported for the given rotation!"); } Eigen::Matrix2cd IFormFactor::thePolFF(const WavevectorInfo&) const -- GitLab