Permalink
Browse files

update .travs.yml, change err.errno to err.code

  • Loading branch information...
1 parent 3828d51 commit 9ed149065ebdaa44f5ffd714ad74504bee3a9b0c @drewfish drewfish committed Nov 30, 2016
Showing with 6 additions and 3 deletions.
  1. +4 −1 .travis.yml
  2. +1 −1 lib/app/addons/rs/config.js
  3. +1 −1 lib/util.js
View
@@ -1,6 +1,9 @@
language: node_js
node_js:
- - "0.10"
+ - "0.12"
+ - "4"
+ - "6"
+ - "7"
env:
- "testtype=unit"
- "testtype=func"
@@ -145,7 +145,7 @@ YUI.add('addon-rs-config', function(Y, NAME) {
throw new Error(parseErr);
}
} catch (err) {
- if (err.errno !== 34) { // if the error was not "no such file or directory" report it
+ if (err.code !== 'ENOENT') { // if the error was not "no such file or directory" report it
throw new Error("Error parsing file: " + fullPath + "\n" + err);
}
}
View
@@ -111,7 +111,7 @@ function readConfig(fullPath) {
throw new Error(parseErr);
}
} catch (err) {
- if (err.errno !== 34) { // if the error was not "no such file or directory" report it
+ if (err.code !== 'ENOENT') { // if the error was not "no such file or directory" report it
throw new Error("Error parsing file: " + fullPath + "\n" + err);
}
}

0 comments on commit 9ed1490

Please sign in to comment.