From dd051bd5b1f91999c38e70ad4342381fdd88a014 Mon Sep 17 00:00:00 2001 From: Steve Hetzel Date: Thu, 16 Nov 2023 12:40:40 -0700 Subject: [PATCH] fix: set stack to fullStack if set --- src/sfError.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sfError.ts b/src/sfError.ts index c7af7a4043..d00c4079aa 100644 --- a/src/sfError.ts +++ b/src/sfError.ts @@ -72,6 +72,9 @@ export class SfError extends NamedError { } else { this.exitCode = 1; } + if (this.fullStack) { + this.stack = this.fullStack; + } } // eslint-disable-next-line @typescript-eslint/no-explicit-any