Skip to content
Snippets Groups Projects
Commit d7d13f32 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

user readable error message

parent 9f10854c
No related branches found
No related tags found
1 merge request!511improve error message
Pipeline #51382 passed
...@@ -66,9 +66,8 @@ IFormFactor* IFormFactor::createSlicedFormFactor(ZLimits limits, const IRotation ...@@ -66,9 +66,8 @@ IFormFactor* IFormFactor::createSlicedFormFactor(ZLimits limits, const IRotation
return nullptr; return nullptr;
if (canSliceAnalytically(rot)) if (canSliceAnalytically(rot))
return sliceFormFactor(limits, rot, translation); return sliceFormFactor(limits, rot, translation);
throw std::runtime_error(className() throw std::runtime_error(
+ "::createSlicedFormFactor error: not supported for " "Slicing of " + className() + " not supported for the given rotation!");
"the given rotation!");
} }
Eigen::Matrix2cd IFormFactor::thePolFF(const WavevectorInfo&) const Eigen::Matrix2cd IFormFactor::thePolFF(const WavevectorInfo&) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment