Skip to content

Commit

Permalink
added a missing check for an error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Kainz committed Sep 14, 2012
1 parent 8dd03b0 commit 56dd97c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wsdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 56dd97c

Please sign in to comment.