more verbose errors
This commit is contained in:
parent
0b1f545aa5
commit
2175b22f2a
@ -41,14 +41,14 @@ func (r *Runner) Run() error {
|
||||
if v != fv {
|
||||
l, e := goBuildBinary(m.RootPath)
|
||||
if e != nil {
|
||||
return e
|
||||
return fmt.Errorf("error in goBuildBinary: %s", e)
|
||||
}
|
||||
_, e = r.client.Logentry.
|
||||
Create().
|
||||
SetContent(l).
|
||||
Save(context.Background())
|
||||
if e != nil {
|
||||
return e
|
||||
return fmt.Errorf("error creating log entry: %s", e)
|
||||
}
|
||||
if m.MoveToTarget {
|
||||
if fl, e := copyFile(
|
||||
@ -62,12 +62,12 @@ func (r *Runner) Run() error {
|
||||
SetContent(fl).
|
||||
Save(context.Background())
|
||||
if e != nil {
|
||||
return e
|
||||
return fmt.Errorf("error saving log entry: %s", e)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if e := chownBinary(m.User, m.Group, fmt.Sprintf("%s/%s", m.RootPath, m.BinaryPath)); e != nil {
|
||||
return e
|
||||
return fmt.Errorf("error chowning binary: %s", e)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user