getMessage()); add_action('admin_notices', static function () use ($exception): void { if (! current_user_can('manage_options')) { return; } printf( '

Flysystem Offload: %s

', esc_html($exception->getMessage()) ); }); } }, 0);