Skip to content

Commit

Permalink
More explicit error message
Browse files Browse the repository at this point in the history
  • Loading branch information
giboul committed Dec 5, 2024
1 parent aa994c3 commit f2899d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pyclaw/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def get_clawpack_dot_xxx(modname): return modname.rpartition('.')[0]
# Load frame
frame = arg[0]
if not isinstance(frame,numbers.Integral):
raise Exception('Invalid pyclaw.Solution object initialization')
raise Exception(
'Invalid pyclaw.Solution object initialization: '
+ repr(frame) + ' is not an int.'
)
if ('count_from_zero' in kargs):
if (kargs['count_from_zero'] == True):
self._start_frame = 0
Expand Down

0 comments on commit f2899d1

Please sign in to comment.