* Api.php:
(ApiException::__construct): Add a prefix for the list of errors to be displayed
(ApiException::addException): Append the exception's message to ApiException->message
*/
public function __construct()
{
- parent::__construct(_('An error occurred while processing the API data.'));
+ parent::__construct(_('An error occurred while processing the API data. Errors: '));
}
/**
public function addException(Exception $e)
{
$this->exceptions[] = $e;
+ $this->message .= ' (' . sizeof($this->exceptions) . ') ' . $e->getMessage();
}
/**
- New: In the BSTemplate::$preParseHook method, the second parameter will be the BSTemplate object itself
- New: Add BSTemplate::$globalVars to be substituted into every template
- Change: BSTemplate will better detect parse errors in nested templates in BSTemplate::evaluate()
+- Change: ApiException will now report all of its messages in ::getMessage()