Permalink
Browse files

added a missing check for an error condition

  • Loading branch information...
1 parent 8dd03b0 commit 56dd97c6dea436f5ab3a6e635f8b7bf212205e11 Joachim Kainz committed Sep 14, 2012
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 56dd97c

Please sign in to comment.