Skip to content

Commit

Permalink
Merge pull request #7 from ms609/patch-1
Browse files Browse the repository at this point in the history
Return error message when run fails
  • Loading branch information
davidgohel authored Mar 31, 2023
2 parents ce46c3f + 807e76f commit e0bd568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/docx2pdf.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ docx2pdf_win <- function(input, output = gsub("\\.(docx|doc|rtf)$", ".pdf", inpu

rm_working_directory()

if(!success) stop("could not convert ", input, call. = FALSE)
if(!success) stop("could not convert ", input, res$stderr, call. = FALSE)

output

Expand Down

0 comments on commit e0bd568

Please sign in to comment.