mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-08 10:01:34 +00:00
Fix error handling
Signed-off-by: Tim Etchells <tetchell@redhat.com>
This commit is contained in:
parent
54d567b235
commit
a65863e0db
6 changed files with 51 additions and 66 deletions
16
src/types.ts
16
src/types.ts
|
@ -1,11 +1,5 @@
|
|||
export interface CommandSucceeeded {
|
||||
readonly succeeded: true;
|
||||
readonly output?: string;
|
||||
}
|
||||
|
||||
export interface CommandFailed {
|
||||
readonly succeeded: false;
|
||||
readonly reason?: string;
|
||||
}
|
||||
|
||||
export type CommandResult = CommandFailed | CommandSucceeeded;
|
||||
type CommandResult = {
|
||||
exitCode: number
|
||||
output: string
|
||||
error: string
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue