Skip to content

Commit

Permalink
make not finding chrome an error on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
colearendt committed Nov 22, 2019
1 parent 365a8c0 commit 36377c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/chrome.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ find_chrome <- function() {
if (nchar(path) == 0) {
path <- Sys.which("chromium-browser")
}
if (nchar(path) == 0) {
stop("`google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.")
}
path
} else {
stop("Platform currently not supported")
Expand Down

0 comments on commit 36377c3

Please sign in to comment.