HM\BackUpWordPress\Backup_Engine::get_errors PHP Method

get_errors() public method

Get the array of errors encountered during the backup process.
public get_errors ( string | null $context = null ) : array
$context string | null The context for the error, usually the Backup Engine that encountered the error.
return array The array of errors.
    public function get_errors($context = null)
    {
        // Only return a specific contexts errors.
        if (!empty($context)) {
            return isset($this->errors[$context]) ? $this->errors[$context] : array();
        }
        return $this->errors;
    }