diff --git a/fsl/data/image.py b/fsl/data/image.py index 1dc0aaf93bd1def53bb793d27c0033269eba82e2..eb9c468cc50a9831833b50bbe3cd758576297e18 100644 --- a/fsl/data/image.py +++ b/fsl/data/image.py @@ -622,8 +622,9 @@ class Nifti(notifier.Notifier, meta.Meta): if from_ not in ('voxel', 'fsl', 'world') or \ to not in ('voxel', 'fsl', 'world'): - raise ValueError('Invalid source/reference spaces: ' - '{} -> {}'.format(from_, to)) + raise ValueError('Invalid source/reference spaces: "{}" -> "{}".' + 'Recognised spaces are "voxel", "fsl", and ' + '"world"'.format(from_, to)) return np.copy(self.__affines[from_, to])