Browse files

Investigating Travis-CI failures.

I'm trying to diagnose why absolute_url_for_path is causing issues in some cases.
  • Loading branch information...
1 parent 74fcc7a commit 24645bc959f4c173be626e39dbb5f057c8bb242a @lazyatom lazyatom committed May 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/backend_server/preview.rb
View
1 lib/backend_server/preview.rb
@@ -55,6 +55,7 @@ def queue_preview(url, width)
def queue_preview_from_content(content, width)
preview_id = IdGenerator.random_id
path = ContentStore.write_html_content(content, preview_id)
+ raise "wtf" if path.nil?
Resque.enqueue(Jobs::PreparePage, absolute_url_for_path(path), width, preview_id, "preview")
preview_pending_path = absolute_url_for_path("/preview/pending/#{preview_id}")
if request.accept?('application/json')

0 comments on commit 24645bc

Please sign in to comment.