Index: /issm/trunk/src/c/shared/Exceptions/Exceptions.cpp
===================================================================
--- /issm/trunk/src/c/shared/Exceptions/Exceptions.cpp	(revision 3786)
+++ /issm/trunk/src/c/shared/Exceptions/Exceptions.cpp	(revision 3787)
@@ -3,4 +3,9 @@
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#else
+#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
+#endif
 #include "../shared.h"
 #include "../../include/include.h"
@@ -30,11 +35,17 @@
 
 void ErrorException::Report(){
+	extern int my_rank;
 
 	if (function_name=="" || file_line==0){ //WINDOWS
-		_printf_("%s%s","Error message: ",what());
+		printf("%s%s","Error message: ",what());
 	}
 	else{
-		_printf_("\n%s%s%s%i\n","??? Error using ==> ",file_name.c_str()," at ",file_line);
-		_printf_("%s%s%s\n\n",function_name.c_str()," error message: ",what());
+		#ifdef _PARALLEL_
+			printf("\n[%i] %s%s%s%i\n",my_rank,"??? Error using ==> ",file_name.c_str()," at ",file_line);
+			printf("[%i] %s%s%s\n\n",my_rank,function_name.c_str()," error message: ",what());
+		#else
+			printf("\n%s%s%s%i\n","??? Error using ==> ",file_name.c_str()," at ",file_line);
+			printf("%s%s%s\n\n",function_name.c_str()," error message: ",what());
+		#endif
 	}
 	return;
