Skip to content

Commit

Permalink
fix: propagate original error of unknown type
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Jul 25, 2024
1 parent 157a7cf commit 64d2dde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/plugins/exec/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { exec } from "../../util/util.js"
import type { Log } from "../../logger/log-entry.js"
import type { PluginContext } from "../../plugin-context.js"
import type { ResolvedExecAction } from "./config.js"
import { RuntimeError } from "../../exceptions.js"
import { RuntimeError, toGardenError } from "../../exceptions.js"

export function getDefaultEnvVars(action: ResolvedExecAction) {
return {
Expand Down Expand Up @@ -115,6 +115,8 @@ export async function copyArtifacts(
if (err.name === "CpyError") {
throw new RuntimeError({ message: err.message })
}

throw err
}
})
)
Expand Down

0 comments on commit 64d2dde

Please sign in to comment.