Skip to content

Commit

Permalink
Change error from string to array
Browse files Browse the repository at this point in the history
  • Loading branch information
serkin committed May 15, 2015
1 parent f339c07 commit 81f8bdb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Volan.php
Expand Up @@ -7,9 +7,9 @@
class Volan
{
/**
* @var string
* @var array
*/
private $error = '';
private $error;

/**
* @var \Psr\Log\LoggerInterface
Expand Down Expand Up @@ -39,9 +39,9 @@ class Volan
const ERROR_NESTED_ELEMENT_NOT_VALID = 7;

/**
* @return string
* @return array
*/
public function getError()
public function getErrorInfo()
{
return $this->error;
}
Expand Down Expand Up @@ -74,7 +74,7 @@ public function log($message)
*/
private function setError($message, $code)
{
$this->error = $code.': '.$message;
$this->error = ['code' => $code, 'error' => $message];
}

/**
Expand Down

0 comments on commit 81f8bdb

Please sign in to comment.