Skip to content
Snippets Groups Projects
Commit 10d651ce authored by Harry Jeffery's avatar Harry Jeffery
Browse files

Refs #11474 Make createWorkspace fail noisily

parent 5f40c07a
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,10 @@ object createWorkspace() { ...@@ -62,7 +62,10 @@ object createWorkspace() {
" lhs = kernel.funcreturns.process_frame(inspect.currentframe().f_back)\n" " lhs = kernel.funcreturns.process_frame(inspect.currentframe().f_back)\n"
" if lhs[0] > 0:\n" " if lhs[0] > 0:\n"
" OutputWorkspace = lhs[1][0]\n" " OutputWorkspace = lhs[1][0]\n"
" else:\n"
" raise RuntimeError('createWorkspace failed to infer a name for its"
" output projection workspace. Please pass an"
" OutputWorkspace parameter to it.')\n"
" if OutputWorkspace:\n" " if OutputWorkspace:\n"
" mtd[OutputWorkspace] = ws\n" " mtd[OutputWorkspace] = ws\n"
......
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