Skip to content

Commit

Permalink
Updated the default error code (from "0" to "1")
Browse files Browse the repository at this point in the history
  • Loading branch information
smortensen committed Dec 24, 2015
1 parent 2cd09cd commit 8a323b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Exception/Evaluation.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ class Evaluation extends Exception implements JsonRpc\Exception
* as application-defined error codes. You can safely use any integer value
* from outside the reserved range.
*/
public function __construct($message = '', $code = 0)
public function __construct($message = '', $code = 1)
{
if (!self::isValidCode($code)) {
$code = 0;
$code = 1;
}

if (!self::isValidMessage($message)) {
Expand Down

0 comments on commit 8a323b7

Please sign in to comment.