Skip to content

Commit c298898

Browse files
print correct error message
1 parent f3073c5 commit c298898

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/httpClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ export default class httpClient {
189189
}
190190
return { authResult, orgId, userId };
191191
} else {
192+
if(response && response.message) {
193+
throw new Error(response.message);
194+
}
192195
throw new Error('Authentication failed, project token not received. Refer to the smartui.log file for more information');
193196
}
194197
}

0 commit comments

Comments
 (0)