public static function importError(Model $record, string $handle)
    {
        static::warning('- Error importing '.get_class($record).' '.$handle);
        $errors = $record->getErrors();
        if (!is_array($errors)) {
            static::error('   - An unknown error has occurred');

            return;
        }
        foreach ($errors as $subErrors) {
            foreach ($subErrors as $error) {
                static::error('   - '.$error);
            }
        }
    }
public static function importError(Model $record, string $handle)
    {
        static::warning('- Error importing '.get_class($record).' '.$handle);
        $errors = $record->getErrors();
        if (!is_array($errors)) {
            static::error('   - An unknown error has occurred');

            return;
        }
        foreach ($errors as $subErrors) {
            foreach ($subErrors as $error) {
                static::error('   - '.$error);
            }
        }
    }
public static function importError ( Model $ record , string $ handle ) { static :: warning ( '- Error importing ' . get_class ( $ record ) . ' ' . $ handle ) ; $ errors = $ record -> getErrors ( ) ; if ( ! is_array ( $ errors ) ) { static :: error ( '   - An unknown error has occurred' ) ; return ; } foreach ( $ errors as $ subErrors ) { foreach ( $ subErrors as $ error ) { static :: error ( '   - ' . $ error ) ; } } }
Log an import error.

@param Model  $record
@param string $handle
Log an import error .