Index: /issm/trunk/cron/nightlyrun.sh
===================================================================
--- /issm/trunk/cron/nightlyrun.sh	(revision 6105)
+++ /issm/trunk/cron/nightlyrun.sh	(revision 6106)
@@ -255,6 +255,6 @@
 	catch me,
 		%An error occured, get report and exit
+		message=getReport(me)
 		directory=strsplit(pwd,'/');
-		message=getReport(me)
 		fid=fopen([ISSM_TIER '/nightlylog/matlaberror.log'], 'at');
 		fprintf(fid,'\nMatlab error occured in: %s\n\n',directory{end});
