From fe68b6930249881b99a10211c47af45c4f8e0d8f Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Wed, 15 May 2013 11:53:43 +0200 Subject: [PATCH] reporting: @report: throw explicit error if user has not passed compiler option on Windows --- matlab/reports/@report/compile.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/reports/@report/compile.m b/matlab/reports/@report/compile.m index 91a3a7376..5e49e7c45 100644 --- a/matlab/reports/@report/compile.m +++ b/matlab/reports/@report/compile.m @@ -41,7 +41,9 @@ if isempty(compiler) system(['PATH=$PATH:/usr/texbin:/usr/local/bin:/usr/local/sbin;' ... 'which pdflatex'], '-echo'); elseif strcmp(computer, 'PCWIN') || strcmp(computer, 'PCWIN64') - % need to fill in for Windows + error(['@report.compile: On Windows machines, you must explicitly ' ... + 'provide the ''compiler'' option or set the compiler ' ... + 'variable in the Report class']); else % gnu/linux [status, compiler] = system('which pdflatex', '-echo'); end