mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-24 19:04:46 +01:00
Surface inner exception when secret:bulk upload command fails
This commit is contained in:
parent
2521ec00cc
commit
7e684fbad9
2 changed files with 8 additions and 3 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "wrangler-action",
|
||||
"version": "3.3.2",
|
||||
"version": "3.4.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "wrangler-action",
|
||||
"version": "3.3.2",
|
||||
"version": "3.4.0",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
|
|
|
@ -5,6 +5,7 @@ import {
|
|||
endGroup as originalEndGroup,
|
||||
error as originalError,
|
||||
info as originalInfo,
|
||||
debug,
|
||||
startGroup as originalStartGroup,
|
||||
setFailed,
|
||||
setOutput,
|
||||
|
@ -204,7 +205,11 @@ async function uploadSecrets() {
|
|||
),
|
||||
),
|
||||
});
|
||||
} catch (err) {
|
||||
} catch (err: unknown) {
|
||||
if (err instanceof Error) {
|
||||
error(err.message);
|
||||
debug(`Secret upload error stack: ${err.stack}`);
|
||||
}
|
||||
throw new Error(`Failed to upload secrets.`);
|
||||
} finally {
|
||||
endGroup();
|
||||
|
|
Loading…
Reference in a new issue