Better error descriptions
This commit is contained in:
parent
50b1eb902a
commit
90a3dee390
|
@ -25,7 +25,7 @@ class Authorization extends Validator
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $message = 'Unknown Error';
|
||||
protected $message = 'Authorization Error';
|
||||
|
||||
/**
|
||||
* Structure constructor.
|
||||
|
|
|
@ -10,7 +10,7 @@ class Permissions extends Validator
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $message = 'Unknown Error';
|
||||
protected $message = 'Permissions Error';
|
||||
|
||||
/**
|
||||
* @var Document
|
||||
|
|
|
@ -89,7 +89,7 @@ class Structure extends Validator
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $message = 'Unknown Error';
|
||||
protected $message = 'General Error';
|
||||
|
||||
/**
|
||||
* Structure constructor.
|
||||
|
@ -110,7 +110,7 @@ class Structure extends Validator
|
|||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return 'Invalid document (#'.$this->id.'): '.$this->message;
|
||||
return 'Invalid document structure: '.$this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue