Commits

christiansalazar committed cca1e0f

reparado problema de reporte de error estaba al reves

Comments (0)

Files changed (1)

components/CrugeException.php

 	public $extra;
 	public $code;
 	public function __construct($message,$code=500,$extra=""){
-		parent::__construct($message, $code);
+		parent::__construct($code,$message);
 		$this->code = $code;
 		$this->extra = $extra;
 	}
 		/*
         return $this->classParent . ": [{$this->code}]: ".CrugeTranslator::t($this->message)."\n".$extra;
 		*/
-		return "xxx".CrugeTranslator::t($this->message)."<br/>".$this->code;
+		return CrugeTranslator::t($this->message)."<br/>".$this->code;
     }
 }