Skip to content

Commit

Permalink
Merge pull request #32 from othyn/master
Browse files Browse the repository at this point in the history
Update error messages to aid in debugging
  • Loading branch information
publiux authored Feb 4, 2018
2 parents 7dd0953 + 648d8a5 commit 85c9ded
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ The MIT License (MIT). Please see [License File](https://github.com/publiux/lara

## Changelog

#### v2.0.5
- Added connection error reporting

#### v2.0.4
- Added API support for DigitalOcean Spaces

Expand Down
7 changes: 3 additions & 4 deletions src/Publiux/laravelcdn/Providers/AwsS3Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ public function upload($assets)

$this->s3_client->execute($command);
} catch (S3Exception $e) {
$this->console->writeln('<fg=red>'.$e->getMessage().'</fg=red>');

$this->console->writeln('<fg=red>Upload error: '.$e->getMessage().'</fg=red>');
return false;
}
}
Expand Down Expand Up @@ -234,6 +233,7 @@ public function connect()
)
);
} catch (\Exception $e) {
$this->console->writeln('<fg=red>Connection error: '.$e->getMessage().'</fg=red>');
return false;
}

Expand Down Expand Up @@ -347,8 +347,7 @@ public function emptyBucket()

$empty->delete();
} catch (S3Exception $e) {
$this->console->writeln('<fg=red>'.$e->getMessage().'</fg=red>');

$this->console->writeln('<fg=red>Deletion error: '.$e->getMessage().'</fg=red>');
return false;
}

Expand Down

0 comments on commit 85c9ded

Please sign in to comment.