Method: ActiveModel::Datastore::ClassMethods#log_google_cloud_error

Defined in:
lib/active_model/datastore.rb

#log_google_cloud_errorObject

[View source]

437
438
439
440
441
442
# File 'lib/active_model/datastore.rb', line 437

def log_google_cloud_error
  yield
rescue Google::Cloud::Error => e
  puts "\e[33m[#{e.message.inspect}]\e[0m"
  raise e
end