archives: raise exception if not configured.

This commit is contained in:
evazion
2017-04-05 00:52:59 -05:00
parent 3f35a9ab64
commit 086b520dcc
5 changed files with 13 additions and 14 deletions

View File

@@ -60,7 +60,7 @@ class PostArchive < ActiveRecord::Base
def queue(post)
# queue updates to sqs so that if archives goes down for whatever reason it won't
# block post updates
raise "Archive service is not configured" if !enabled?
raise NotImplementedError.new("Archive service is not configured") if !enabled?
json = {
"post_id" => post.id,