api: Raise errors from saving logs.
authorBrett Smith <brett@curoverse.com>
Thu, 10 Apr 2014 18:46:45 +0000 (14:46 -0400)
committerBrett Smith <brett@curoverse.com>
Thu, 10 Apr 2014 18:54:21 +0000 (14:54 -0400)
commit2386475f3bf86824e320ad121838955278ed3083
tree84c9bc32542990417a551787f1c22125fce7478c
parent44df50add91dc3117291e3a6a908fa442b883106
api: Raise errors from saving logs.

With this change, I realized it'd be cleaner to write the
implementation as after_* callbacks, so this includes that.  But the
fundamental change is to use log.save! instead of plain log.save.
services/api/app/models/arvados_model.rb
services/api/app/models/log.rb
services/api/test/unit/log_test.rb