From c701471a044b95003d17cf3581b8ea81482e4818 Mon Sep 17 00:00:00 2001 From: Kent Huang Date: Thu, 25 Nov 2021 13:09:16 +0800 Subject: [PATCH] [Fix] Error handel when AWS credential is invalid Signed-off-by: Kent Huang --- src/electron/ServerHandlers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/electron/ServerHandlers.ts b/src/electron/ServerHandlers.ts index 0689829..30314f2 100644 --- a/src/electron/ServerHandlers.ts +++ b/src/electron/ServerHandlers.ts @@ -21,7 +21,8 @@ getAwsCredential() const aws = AwsAdapter.getInstance(); return aws.verifyAccessPermission(); }) - .then((data) => console.log(data)); + .then(data => console.log(data)) + .catch(err => console.log(err)); export function generateDockerfile(options) { let base_image_url = options['base_image_url'];