Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 24645bc959f4c173be626e39dbb5f057c8bb242a 1 parent 74fcc7a
James Adam lazyatom authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/backend_server/preview.rb
1  lib/backend_server/preview.rb
View
@@ -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')
Please sign in to comment.
Something went wrong with that request. Please try again.