File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/Publiux/laravelcdn/Providers Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,9 @@ The MIT License (MIT). Please see [License File](https://github.com/publiux/lara
297
297
298
298
## Changelog
299
299
300
+ #### v2.0.5
301
+ - Added connection error reporting
302
+
300
303
#### v2.0.4
301
304
- Added API support for DigitalOcean Spaces
302
305
Original file line number Diff line number Diff line change @@ -199,8 +199,7 @@ public function upload($assets)
199
199
200
200
$ this ->s3_client ->execute ($ command );
201
201
} catch (S3Exception $ e ) {
202
- $ this ->console ->writeln ('<fg=red> ' .$ e ->getMessage ().'</fg=red> ' );
203
-
202
+ $ this ->console ->writeln ('<fg=red>Upload error: ' .$ e ->getMessage ().'</fg=red> ' );
204
203
return false ;
205
204
}
206
205
}
@@ -234,6 +233,7 @@ public function connect()
234
233
)
235
234
);
236
235
} catch (\Exception $ e ) {
236
+ $ this ->console ->writeln ('<fg=red>Connection error: ' .$ e ->getMessage ().'</fg=red> ' );
237
237
return false ;
238
238
}
239
239
@@ -347,8 +347,7 @@ public function emptyBucket()
347
347
348
348
$ empty ->delete ();
349
349
} catch (S3Exception $ e ) {
350
- $ this ->console ->writeln ('<fg=red> ' .$ e ->getMessage ().'</fg=red> ' );
351
-
350
+ $ this ->console ->writeln ('<fg=red>Deletion error: ' .$ e ->getMessage ().'</fg=red> ' );
352
351
return false ;
353
352
}
354
353
You can’t perform that action at this time.
0 commit comments