-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Assada/2.0
2.0
- Loading branch information
Showing
3 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package manager | ||
|
||
import "fmt" | ||
|
||
type ErrExitable interface { | ||
ExitStatus() int | ||
} | ||
|
||
var _ error = new(ErrChildDied) | ||
var _ ErrExitable = new(ErrChildDied) | ||
|
||
type ErrChildDied struct { | ||
code int | ||
} | ||
|
||
func NewErrChildDied(c int) *ErrChildDied { | ||
return &ErrChildDied{code: c} | ||
} | ||
|
||
func (e *ErrChildDied) Error() string { | ||
return fmt.Sprintf("child process died with exit code %d", e.code) | ||
} | ||
|
||
func (e *ErrChildDied) ExitStatus() int { | ||
return e.code | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ package version | |
|
||
import "fmt" | ||
|
||
const Version = "0.2.4" | ||
const Version = "0.2.5" | ||
|
||
var ( | ||
Name string | ||
|