more verbose errors
This commit is contained in:
parent
0b1f545aa5
commit
2175b22f2a
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue