Skip to content

Commit

Permalink
Don't translate errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robmcvey committed Mar 14, 2015
1 parent 3b01c5f commit 842cdf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/View/JsonView.php
Expand Up @@ -158,11 +158,11 @@ protected function _serialize($serialize) {
if (function_exists('json_last_error_msg')) {
$error = json_last_error_msg();
} else {
$error = __('JSON encoding failed: Error code %s', json_last_error());
$error = sprintf('JSON encoding failed: Error code %s', json_last_error());
}
throw new CakeException($error);
} elseif ($json === false) {
throw new CakeException(__('Failed to parse JSON'));
throw new CakeException('Failed to parse JSON');
}
return $json;
}
Expand Down

0 comments on commit 842cdf5

Please sign in to comment.