lib/spark_api/models/message.rb in spark_api-1.3.1 vs lib/spark_api/models/message.rb in spark_api-1.3.3
- old
+ new
@@ -4,10 +4,12 @@
self.element_name="messages"
def save(arguments={})
begin
return save!(arguments)
- rescue NotFound, BadResourceRequest => e
+ rescue BadResourceRequest => e
+ SparkApi.logger.warn("Failed to save resource #{self}: #{e.message}")
+ rescue NotFound => e
SparkApi.logger.error("Failed to save resource #{self}: #{e.message}")
end
false
end
def save!(arguments={})