improve display of GetSessionError
This commit is contained in:
@ -34,8 +34,8 @@
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
if (e.code === 'GetSession') {
|
||||
let root = getRootCause(e);
|
||||
const root = getRootCause(e);
|
||||
if (e.code === 'GetSession' && root.code) {
|
||||
errorMsg = `Error response from AWS (${root.code}): ${root.msg}`;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user