Skip to content

Commit

Permalink
combineTransformOverlays.m,transformROIs.m: now displays extended err…
Browse files Browse the repository at this point in the history
…or message when an error is caught in the call to the ROI/overlay combine/transform function
  • Loading branch information
julienbesle committed Oct 1, 2019
1 parent 8c873b7 commit e335914
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mrLoadRet/Plugin/GLM_v2/combineTransformOverlays.m
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
eval(functionString);
% toc
catch exception
mrWarnDlg(sprintf('There was an error evaluating function %s:\n%s',combineFunctionString,getReport(exception,'basic')));
mrWarnDlg(sprintf('There was an error evaluating function %s:\n%s\n',combineFunctionString,getReport(exception)));
set(viewGet(thisView,'figNum'),'Pointer','arrow');drawnow;
return
end
Expand Down
2 changes: 1 addition & 1 deletion mrLoadRet/Plugin/GLM_v2/transformROIs.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
try
roi = eval([params.transformFunction '(rois{iCall}' functionString]);
catch exception
mrWarnDlg(sprintf('(transformROI) There was an error evaluating function %s:\n%s',functionString,getReport(exception,'basic')));
mrWarnDlg(sprintf('(transformROI) There was an error evaluating function %s:\n%s\n',functionString,getReport(exception)));
return
end
for iRoi = 1:length(roi)
Expand Down

0 comments on commit e335914

Please sign in to comment.