Skip to content
Snippets Groups Projects
Verified Commit dc94ab8d authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

fix: add check if wrong filetype is detected


Signed-off-by: Thomas Lambert's avatarThomas Lambert <t.lambert@uliege.be>
parent 55f18d30
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,13 @@ function str = appendextension(str, ext)
% ----------------------------------------------------------------------------------------------
if isempty(regexp(str, [ext, '$'], 'once'))
[~, ~, fileExt] = fileparts(str);
if isempty(fileExt)
str = strcat(str, ext);
elseif ~isempty(fileExt) && ~strcmp(fileExt, ext)
error('MATLAB:appendextension:IncorrectExtension', ...
'Incorrect extension. File %s is expected to be a ''%s''. Found ''%s''.', ...
str, ext, fileExt);
end
end
......@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **formatairfoilcoord**: fix issue with autosave
- **xf2mat**: add error when input is not a proper xfoil/xflr5 result
- **plotpolar**: fix issue when unavailable data
- **all**: add check if wrong filetype is detected
## [4.0.0] - 2022-06-09
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment