We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8a1759 + f9b23a9 commit 70f278eCopy full SHA for 70f278e
nibabel/streamlines/tck.py
@@ -385,7 +385,7 @@ def _read_header(cls, fileobj):
385
'TCK only supports single-file - in other words the filename part must be '
386
f"specified as '.' but '{hdr['file'].split()[0]}' was specified."
387
)
388
- raise HeaderError("Missing 'file' attribute in TCK header.")
+ raise HeaderError(msg)
389
390
# Set endianness and _dtype attributes in the header.
391
hdr[Field.ENDIANNESS] = '>' if hdr['datatype'].endswith('BE') else '<'
0 commit comments