diff options
Diffstat (limited to 'deps/npm/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/README.md')
-rw-r--r-- | deps/npm/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/README.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/deps/npm/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/README.md b/deps/npm/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/README.md index 3393baeecb..e9b5497851 100644 --- a/deps/npm/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/README.md +++ b/deps/npm/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/README.md @@ -41,7 +41,7 @@ request handler that stats a file and fails if it doesn't exist: fs.stat(filename, function (err) { if (err) /* Annotate the "stat" error with what we were doing. */ - return (callback(new verror.VError(err, + return (callback(new verror.VError(err, 'failed to check "%s"', filename))); /* ... */ @@ -49,14 +49,14 @@ request handler that stats a file and fails if it doesn't exist: } function handleRequest(filename, callback) { - checkFile('/nonexistent', function (err) { - if (err) { - /* Annotate the "checkFile" error with what we were doing. */ - return (callback(new verror.VError(err, 'request failed'))); - } - - /* ... */ - }); + checkFile('/nonexistent', function (err) { + if (err) { + /* Annotate the "checkFile" error with what we were doing. */ + return (callback(new verror.VError(err, 'request failed'))); + } + + /* ... */ + }); } handleRequest('/nonexistent', function (err) { |