mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-02-22 20:10:59 -05:00
- Translate to env var for init-script support - Use when deciding whether to log or rethrow errors - Add a custom error type to trigger failure in post action
11 lines
295 B
TypeScript
11 lines
295 B
TypeScript
export class PostActionJobFailure extends Error {
|
|
constructor(error: unknown) {
|
|
if (error instanceof Error) {
|
|
super(error.message)
|
|
this.name = error.name
|
|
this.stack = error.stack
|
|
} else {
|
|
super(String(error))
|
|
}
|
|
}
|
|
}
|