Skip to content

Commit

Permalink
Improve the error/warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
pupeno committed Oct 21, 2015
1 parent 91fdf9a commit e5c3ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/prerenderer/core.clj
Expand Up @@ -88,7 +88,7 @@
(if (is-running? js-engine)
(let [url (str "http://localhost:" (:port-number js-engine) "/render?" (http/generate-query-string {:url url}))]
(:body (http/get url {:headers headers})))
(let [message (str "Prerendering JavaScript engine not running when attempting to render " url ". Options: " js-engine)]
(let [message (str "Prerendering JavaScript engine not running when attempting to render " url ". JavaScript Engine: " js-engine)]
(if (:noop-when-stopped js-engine)
(println message)
(throw (Exception. message))))))

0 comments on commit e5c3ad2

Please sign in to comment.