We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3019678 commit e8db808Copy full SHA for e8db808
src/common/storage/backends/sciserver-files/Client.js
@@ -77,9 +77,11 @@ define([
77
opts.headers = opts.headers || {};
78
opts.headers['X-Auth-Token'] = token;
79
try {
80
- return StorageClient.prototype.fetch.call(this, url, opts);
+ const response = await StorageClient.prototype.fetch.call(this, url, opts);
81
+ return response;
82
} catch (errRes) {
- const err = await this.getErrorMsg(errRes);
83
+ const err = errRes instanceof Error ? errRes :
84
+ await this.getErrorMsg(errRes);
85
throw new Error(`SciServerFiles ${action} failed: ${err}`);
86
}
87
};
0 commit comments