Skip to content

Commit c701471

Browse files
committed
[Fix] Error handel when AWS credential is invalid
Signed-off-by: Kent Huang <kentwelcome@gmail.com>
1 parent 053ba6f commit c701471

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/electron/ServerHandlers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ getAwsCredential()
2121
const aws = AwsAdapter.getInstance();
2222
return aws.verifyAccessPermission();
2323
})
24-
.then((data) => console.log(data));
24+
.then(data => console.log(data))
25+
.catch(err => console.log(err));
2526

2627
export function generateDockerfile(options) {
2728
let base_image_url = options['base_image_url'];

0 commit comments

Comments
 (0)