Commit 85a51bb3 authored by eric pellegrini's avatar eric pellegrini
Browse files

Improved the error message in case of loading failure

parent b13352ca
......@@ -47,8 +47,8 @@ class MMTKTrajectoryInputData(InputFileData):
try:
traj = MMTKTrajectory(None, self._name, "r")
except IOError:
raise InputDataError("The MMTK trajectory %r could not be loaded property." % self._name)
except IOError as e:
raise InputDataError(str(e))
self._data = traj
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment