Skip to content

Commit

Permalink
fix output for error case
Browse files Browse the repository at this point in the history
  • Loading branch information
chenel committed Nov 4, 2023
1 parent 7fda096 commit 2c79d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/h5_to_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def emit(self, namespace, header_filename):
datasets = []
for ds in args.dataset:
if ds not in f or not hasattr(f[ds], "dtype"):
print("Dataset '{0}' not found in file: {1}".format(ds, args.filename), file=sys.stderr)
print("Dataset '{0}' not found in file: {1}".format(ds, args.hdf5), file=sys.stderr)
sys.exit(1)
datasets.append(f[ds])

Expand Down

0 comments on commit 2c79d61

Please sign in to comment.