Skip to content

Commit

Permalink
fix exists error message:
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Feb 12, 2017
1 parent f72fdb4 commit f98fd5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oct2py/core.py
Expand Up @@ -585,7 +585,8 @@ def _exist(self, name):
resp = self._engine.eval(cmd, silent=True).strip()
exist = int(resp.split()[-1])
if exist == 0:
raise Oct2PyError('Value "%s" does not exist' % name)
msg = 'Value "%s" does not exist in Octave workspace'
raise Oct2PyError(msg % name)
return exist

def _isobject(self, name, exist):
Expand Down

0 comments on commit f98fd5b

Please sign in to comment.