Skip to content

Commit 2303947

Browse files
committed
260422.002819.CST [skip ci] revise try_mex_setup.m and getMexLibgcc.m regarding the error messages
1 parent 623a404 commit 2303947

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

matlab/setup_tools/getMexLibgcc.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
clear(mexName);
3232
evalc('mex(''-outdir'', outDir, ''-output'', mexName, exampleFile)');
3333
catch exception
34-
error('%s: Failed to build MEX from %s.\nThe error message is\n%s\nMake sure that MEX is properly set up.', funName, exampleFile, exception.message);
34+
error('%s: Failed to build MEX from %s.\nThe error message is:\n\n%s\nMake sure that MEX is properly set up.', funName, exampleFile, exception.message);
3535
end
3636

3737
% Find produced MEX

matlab/setup_tools/try_mex_setup.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
if ~isempty(exception) || mex_setup ~= 0
130130
fprintf('\nYour MATLAB failed to run mex(''-setup'', ''%s'').', language);
131131
if ~isempty(exception)
132-
fprintf('\nThe error message is\n%s\n', exception.message);
132+
fprintf('\nThe error message is:\n\n%s\n', exception.message);
133133
end
134134
fprintf('\nFor more details, execute the following command:\n');
135135
fprintf('\n mex(''-v'', ''-setup'', ''%s'')\n', language);
@@ -203,7 +203,7 @@
203203
if verbose
204204
fprintf('\nThe MEX of your MATLAB failed to compile\n%s,\nwhich is supposed to be a MATLAB built-in example for trying MEX on %s.\n', example_file, language);
205205
if ~isempty(exception)
206-
fprintf('\nThe error message is\n%s\n', exception.message);
206+
fprintf('\nThe error message is:\n\n%s\n', exception.message);
207207
end
208208
fprintf('\nFor more details, execute the following command:\n');
209209
fprintf('\n mex(''-v'', ''%s'')\n', example_file);

0 commit comments

Comments
 (0)