Skip to content

Commit 95b8003

Browse files
Merge pull request #562 from FAIRmat-NFDI/improves-dataconverter-writer-error
Adds value in output message during write error
2 parents 9a3c5ae + c2a4893 commit 95b8003

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pynxtools/dataconverter/writer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ def add_units_key(dataset, path):
329329
dataset.attrs[entry_name[1:]] = data
330330
except Exception as exc:
331331
raise IOError(
332-
f"Unknown error occured writing the path: {path} "
332+
f"Unknown error occured writing the path: {path}"
333+
f", while writing the value: {value} "
333334
f"with the following message: {str(exc)}"
334335
) from exc
335336

0 commit comments

Comments
 (0)