Skip to content

Commit

Permalink
Merge pull request gutschilla#50 from radditude/fix-nil-path
Browse files Browse the repository at this point in the history
fix error when executable path is nil
  • Loading branch information
gutschilla authored May 7, 2019
2 parents 6b0127a + 188e10d commit 615d25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pdf_generator_path_agent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ defmodule PdfGenerator.PathAgent do
- :raise_on_missing_binaries -> raises on eiter binary missing
"""
def raise_or_continue(options) do
wkhtml_exists = File.exists?(options[:wkhtml_path])
chrome_exists = File.exists?(options[:chrome_path])
wkhtml_exists = File.exists?(options[:wkhtml_path] || "")
chrome_exists = File.exists?(options[:chrome_path] || "")

raise_on_wkhtml_missing = options[:raise_on_missing_wkhtmltopdf_binary]
raise_on_chrome_missing = options[:raise_on_missing_chrome_binary]
Expand Down

0 comments on commit 615d25c

Please sign in to comment.