Skip to content

Commit

Permalink
Merge 62de3e7 into 1f5abf7
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSkinny committed Sep 17, 2016
2 parents 1f5abf7 + 62de3e7 commit acdaf71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ function Test (app, method, path) {
util.inherits(Test, Request);

function serverAddress (app, path) {
if (!app) {
throw new Error("You must pass a valid application or server into the request");
}
if ('string' === typeof app) {
return app + path;
}
Expand Down

0 comments on commit acdaf71

Please sign in to comment.