Skip to content

Loading…

added a check for an error condition #82

Merged
merged 1 commit into from

2 participants

@joachimkainz

required for WSDL file that contain imports of schemas that cannot be found.

@milewise milewise merged commit a8b8552 into vpulim:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 14, 2012
  1. added a missing check for an error condition

    Joachim Kainz committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/wsdl.js
View
4 lib/wsdl.js
@@ -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);
Something went wrong with that request. Please try again.