Description: fail if build fails within the .m build script
Author: Yaroslav Halchenko <debian@onerussian.com>
Forwarded: no
Reviewed-by: Étienne Mollier <emollier@debian.org>
Last-Update: 2026-07-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/PsychSourceGL/Source/striplibsfrommexfile.m
+++ b/PsychSourceGL/Source/striplibsfrommexfile.m
@@ -96,7 +96,8 @@ if exist(filename, 'file')
 
     fprintf('MEX file %s stripped from superfluous libraries.\n', filename);
 else
-    fprintf('WARNING! MEX file %s does not exist! Can''t strip it!\n', filename);
+    fprintf('ERROR! MEX file %s does not exist! Can''t strip it!\n', filename);
+    exit(1);
 end
 
 return
