Skip to content

Commit

Permalink
Merge pull request ome#5767 from joshmoore/matlab-exc
Browse files Browse the repository at this point in the history
processor: Display error messages for MATLAB scripts
  • Loading branch information
sbesson authored Jul 3, 2018
2 parents 86bf287 + 9b6832f commit 63d4945
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/tools/OmeroPy/src/omero/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,11 @@ def command(self):
"""
Overrides ProcessI to call MATLAB idiosyncratically.
"""
r = "try, cd('%s'); script; " % self.dir
r += "catch e, disp(e.identifier); disp(e.message); exit(1); "
r += "end, exit(0)"
matlab_cmd = [
self.interpreter, "-nosplash", "-nodisplay", "-nodesktop",
"-r", "try, cd('%s'); script; catch, exit(1); end, exit(0)"
% self.dir
self.interpreter, "-nosplash", "-nodisplay", "-nodesktop", "-r", r,
]
return matlab_cmd

Expand Down

0 comments on commit 63d4945

Please sign in to comment.