1
0
Fork 0
mirror of synced 2024-06-24 17:20:36 +12:00

Better error descriptions

This commit is contained in:
eldadfux 2019-09-17 12:55:31 +03:00
parent 50b1eb902a
commit 90a3dee390
3 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@ class Authorization extends Validator
/**
* @var string
*/
protected $message = 'Unknown Error';
protected $message = 'Authorization Error';
/**
* Structure constructor.

View file

@ -10,7 +10,7 @@ class Permissions extends Validator
/**
* @var string
*/
protected $message = 'Unknown Error';
protected $message = 'Permissions Error';
/**
* @var Document

View file

@ -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;
}
/**