lib/shelly/cli/backup.rb in shelly-0.5.6 vs lib/shelly/cli/backup.rb in shelly-0.5.7
- old
+ new
@@ -56,9 +56,11 @@
say "Backup file saved to #{backup.filename}", :green
rescue Client::NotFoundException => e
raise unless e.resource == :backup
say_error "Backup not found", :with_exit => false
say "You can list available backups with `shelly backup list` command"
+ rescue Client::ForbiddenException => e
+ say_error e[:message]
end
desc "create [DB_KIND]", "Create backup of given database"
long_desc %{
Create backup of given database.