#include "onerror.hpp"


//------------------------- ERROR Module ------------------------//
//						  v 05 . 03 .  2007						 //
//																 //
//								MT								 //
//---------------------------------------------------------------//


	// --- CError :: OnError ---
void CError :: OnError(char *s, int num)  {
  
	last_error_text = strdup(s);
	number = num;

	printf("%s :: %d\n", s, num);
	
	printf("~Try to continue (may be errors)? [y/n]");
	if ( getchar() != 'y') exit(number);
};


void CError :: OnQuietError(int num)  {
  
	last_error_text = strdup("QUIET");
	number = num;
};
