Index: Jenkinsfile
===================================================================
--- Jenkinsfile	(revision 8e58264372ce528a9ded7d9fce84d88a761ff3cd)
+++ Jenkinsfile	(revision 28c35e2df7bbf22ffd7561aa771276e2a4d55b0e)
@@ -54,14 +54,15 @@
 	//attach the build log to the email
 	catch (Exception caughtError) {
+		//An error has occured, the build log is relevent
+		log_needed = true
+
+		//Store the result of the build log
+		currentBuild.result = "${tools.StageName} FAILURE".trim()
+
 		//rethrow error later
 		err = caughtError
 
+		echo "Error caught, status: ${currentBuild.result}"
 		echo err.toString()
-
-		//An error has occured, the build log is relevent
-		log_needed = true
-
-		//Store the result of the build log
-		currentBuild.result = "${tools.StageName} FAILURE".trim()
 	}
 
