From 0a8eabaa98fadff8994f81299b16e017d537f1b1 Mon Sep 17 00:00:00 2001 From: bubkoo Date: Sat, 26 Sep 2020 01:10:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20error=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/util.ts b/src/util.ts index 11aabac..97c75eb 100644 --- a/src/util.ts +++ b/src/util.ts @@ -69,9 +69,10 @@ export namespace Util { ...secret, secret_name: name, }) - } catch (error) { - core.error(error) - core.setFailed(error) + } catch (e) { + core.error(e) + core.error(JSON.stringify(e, null, 2)) + core.setFailed(e.message) } } }