[Pkg-javascript-commits] [pdf.js] 67/119: Fail with a more informative error message if the browser executable path doesn't exist
David Prévot
taffit at moszumanska.debian.org
Wed May 13 21:27:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit fbae39983c740a4a8daa6dedcda0a42b4da898cd
Author: Marco Castelluccio <mar.castelluccio at studenti.unina.it>
Date: Fri Apr 17 16:12:13 2015 +0200
Fail with a more informative error message if the browser executable path doesn't exist
---
test/webbrowser.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/webbrowser.js b/test/webbrowser.js
index 8c36432..c0cf38f 100644
--- a/test/webbrowser.js
+++ b/test/webbrowser.js
@@ -145,6 +145,10 @@ ChromiumBrowser.prototype.buildArguments = function (url) {
WebBrowser.create = function (desc) {
var name = desc.name;
+
+ // Throws an exception if the path doesn't exist.
+ fs.statSync(desc.path);
+
if (/firefox/i.test(name)) {
return new FirefoxBrowser(desc.name, desc.path);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list