File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,10 @@ class Client {
115115 let response = await axios(options);
116116 return response.data;
117117 } catch(error) {
118- if('response' in error) {
118+ if('response' in error && error.response !== undefined ) {
119119 if(error.response && 'data' in error.response) {
120120 if (typeof(error.response.data) === 'string') {
121- throw new {{spec .title | caseUcfirst }}Exception(error.response.data, error.response.status, error.response.data);
121+ throw new {{spec .title | caseUcfirst }}Exception(error.response.data, error.response.status, error.response.data);
122122 } else {
123123 throw new {{spec .title | caseUcfirst }}Exception(error.response.data.message, error.response.status, error.response.data);
124124 }
You can’t perform that action at this time.
0 commit comments