Permalink
Browse files

Merge pull request #82 from joachimkainz/patch-1

added a check for an error condition
  • Loading branch information...
milewise committed Sep 18, 2012
2 parents 2b4cb95 + 56dd97c commit a8b85526ab1a05740c3433386f299f41d850bcdb
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/wsdl.js
View
@@ -630,6 +630,10 @@ WSDL.prototype._processNextInclude = function(includes, callback) {
if (!include) return callback()
open_wsdl(url.resolve(self.uri, include.location), function(err, wsdl) {
+ if (err) {
+ return callback(err);
+ }
+
self.definitions.schemas[include.namespace || wsdl.definitions.$targetNamespace] = wsdl.definitions;
self._processNextInclude(includes, function(err) {
callback(err);

0 comments on commit a8b8552

Please sign in to comment.