Commit 2ef83e78 authored by Raj Giridharagopal's avatar Raj Giridharagopal
Browse files

minor error message changes

parent 9d3f1774
......@@ -59,7 +59,7 @@ class IgorIBWTranslator(Translator):
else:
h5_path = append_path
if not path.exists(append_path):
raise Exception('Improper file')
raise Exception('File does not exist. Check pathname.')
h5_file = h5py.File(h5_path, 'r+')
......
......@@ -194,6 +194,8 @@ class PiFMTranslator(Translator):
self.h5_f = h5py.File(h5_path, mode='w')
else:
if not os.path.exists(append_path):
raise Exception('File does not exist. Check pathname.')
self.h5_f = h5py.File(append_path, mode='r+')
self.h5_meas_grp = usid.hdf_utils.create_indexed_group(self.h5_f, grp_name)
......
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