mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 01:53:24 +01:00
Merge pull request #227 from AdiRishi/arishi-secrets-error
(enhancement): Surface inner exception when secret:bulk upload command fails
This commit is contained in:
commit
522c117b7d
3 changed files with 13 additions and 3 deletions
5
.changeset/sixty-moons-switch.md
Normal file
5
.changeset/sixty-moons-switch.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"wrangler-action": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Surface inner exception when secret:bulk upload command fails
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "wrangler-action",
|
"name": "wrangler-action",
|
||||||
"version": "3.3.2",
|
"version": "3.4.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "wrangler-action",
|
"name": "wrangler-action",
|
||||||
"version": "3.3.2",
|
"version": "3.4.0",
|
||||||
"license": "MIT OR Apache-2.0",
|
"license": "MIT OR Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
|
|
|
@ -5,6 +5,7 @@ import {
|
||||||
endGroup as originalEndGroup,
|
endGroup as originalEndGroup,
|
||||||
error as originalError,
|
error as originalError,
|
||||||
info as originalInfo,
|
info as originalInfo,
|
||||||
|
debug,
|
||||||
startGroup as originalStartGroup,
|
startGroup as originalStartGroup,
|
||||||
setFailed,
|
setFailed,
|
||||||
setOutput,
|
setOutput,
|
||||||
|
@ -204,7 +205,11 @@ async function uploadSecrets() {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err: unknown) {
|
||||||
|
if (err instanceof Error) {
|
||||||
|
error(err.message);
|
||||||
|
err.stack && debug(err.stack);
|
||||||
|
}
|
||||||
throw new Error(`Failed to upload secrets.`);
|
throw new Error(`Failed to upload secrets.`);
|
||||||
} finally {
|
} finally {
|
||||||
endGroup();
|
endGroup();
|
||||||
|
|
Loading…
Reference in a new issue