Skip to content

Commit

Permalink
Merge pull request #10 from Assada/2.0
Browse files Browse the repository at this point in the history
2.0
  • Loading branch information
assada authored Nov 29, 2018
2 parents 2163795 + 920a263 commit 3bde500
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions manager/errors.go
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
}
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package version

import "fmt"

const Version = "0.2.4"
const Version = "0.2.5"

var (
Name string
Expand Down

0 comments on commit 3bde500

Please sign in to comment.