public function error($context, $error)
{
if (empty($context) || empty($error)) {
return;
}
// Ensure we don't store duplicate errors by md5'ing the error as the key
$this->errors[$context][md5(implode(':', (array) $error))] = $error;
}