js-openclient
js-openclient copied to clipboard
js-openclient/heat/v1/stacks.js not handling error callback
In the file js-openclient/heat/v1/stacks.js
In the create function, it deletes the reference to the error callack:
if (params.error) delete params.error;
but later we call manager.safe_complete to handle the error:
this._super(params, function (err, result, xhr) { if (err) return manager.safe_complete(err, null, null, params, callback);
However, safe_complete depends on params.error being a function to handle the callback.
Does the code need to delete the params.error ?
BTW - great library!