From e7ed9b690c396f3760d044a2dac458811d2a8a8a Mon Sep 17 00:00:00 2001 From: Assada Date: Thu, 29 Nov 2018 15:39:14 +0200 Subject: [PATCH 1/2] Bump version --- Gopkg.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 1a659fe..ddbb27c 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -2,7 +2,7 @@ [[projects]] - digest = "1:4715c93d153a71918d329a232bf92685f10d7c476e11d3b72e3c6988dc67cac9" + digest = "1:56fc2dcfc482ed0ee79ff15decf56710266b70c6a7ff8c62501b86f5b6e8b0bf" name = "github.com/Assada/consul-generator" packages = [ "client", @@ -15,8 +15,8 @@ "version", ] pruneopts = "UT" - revision = "fa40f0793ae3b31870fd3207f761567e011ac181" - version = "v0.2.2" + revision = "2163795a8a24c932b1c1e2c20aeb76aaf11054ef" + version = "v0.2.4" [[projects]] digest = "1:50e70688f601c4d8998ad3f1b7b4bda9fb8675afc78c254eae131da19c856154" From 920a263a6ca53c25de5e25fc09222188278808bd Mon Sep 17 00:00:00 2001 From: Assada Date: Thu, 29 Nov 2018 15:43:24 +0200 Subject: [PATCH 2/2] Restore errors.go --- manager/errors.go | 26 ++++++++++++++++++++++++++ version/version.go | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 manager/errors.go diff --git a/manager/errors.go b/manager/errors.go new file mode 100644 index 0000000..df1f40e --- /dev/null +++ b/manager/errors.go @@ -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 +} diff --git a/version/version.go b/version/version.go index 3bbca96..104a364 100644 --- a/version/version.go +++ b/version/version.go @@ -2,7 +2,7 @@ package version import "fmt" -const Version = "0.2.4" +const Version = "0.2.5" var ( Name string