Skip to content

Commit

Permalink
add id to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Aug 12, 2023
1 parent 43eb70b commit aaa0007
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion +bids/query.m
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@ case cat(2, {'suffixes', 'suffixes', 'extensions', 'prefixes'}, valid_entity_qu
try
result{end} = subsref(result{end}, target);
catch
warning('Non-existent field "%s" for metadata.', target.subs);
msg = sprintf('Non-existent field "%s" for metadata.', target.subs);
bids.internal.error_handling(mfilename(), ...
'unknownMetadata', ...
msg, ...
true);
result{end} = [];
end
end
Expand Down

0 comments on commit aaa0007

Please sign in to comment.