Index: /issm/trunk/cron/nightlyrun.sh
===================================================================
--- /issm/trunk/cron/nightlyrun.sh	(revision 1724)
+++ /issm/trunk/cron/nightlyrun.sh	(revision 1725)
@@ -27,5 +27,4 @@
 	echo $suffix;			 
 } 
-
 function host_name()
 {
@@ -40,5 +39,4 @@
 } 
 
-
 #get configs
 if [ $# -ne 1 ];
@@ -58,5 +56,4 @@
 export ISSM_RELEASE="issm"
 export OS
-
 
 #create ISSM variables
@@ -113,4 +110,5 @@
 
 #3: generate MakeFiles
+cd $ISSM_DIR
 sh scripts/automakererun.sh
 sh configs/$OS/$OS.sh
@@ -145,5 +143,10 @@
 startup
 warning off %necessary to avoid a nightly.log of several Go for cielo_parallel
-nightlyrun($PACKAGES);
+try,
+	nightlyrun($PACKAGES);
+catch me,
+	%An error occured, get report and exit
+	getreport(me)
+end
 exit
 EOF
