Skip to content

Commit a01bade

Browse files
committed
warning-ID
1 parent 25074f5 commit a01bade

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pspm_pupil_pp.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@
156156
% Check for invalid pupil data units
157157
allowed_units = {'mm', 'cm', 'dm', 'm', 'km', 'in', 'inches'};
158158
if ~ismember(data.header.units, allowed_units)
159-
warning('pspm_pupil_pp:InvalidUnit', ...
160-
'Unsupported pupil data unit: %s. Allowed units are: %s', ...
159+
warning('ID:invalid_unit', ...
160+
'Unsupported pupil data unit: "%s". Allowed units are: %s', ...
161161
data.header.units, strjoin(allowed_units, ', '));
162-
return
162+
return;
163163
end
164164

165165

0 commit comments

Comments
 (0)