Skip to content

Commit 7980072

Browse files
committed
few misc fixes
1 parent e942cfa commit 7980072

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

runner/fuji_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (wr *fujiRunner) Run() error {
9393

9494
err = sp.Grant(consumer)
9595
if err != nil {
96-
consumer.Warnf(err.Error())
96+
consumer.Warnf("%s", err)
9797
consumer.Warnf("Attempting launch anyway...")
9898
}
9999

runner/mac_launch_target.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package runner
22

33
import (
4-
"errors"
54
"fmt"
65
"os"
76
"path/filepath"
@@ -42,7 +41,7 @@ func PrepareMacLaunchTarget(params RunnerParams) (*MacLaunchTarget, error) {
4241
target.IsAppBundle = true
4342
return target, nil
4443
}
45-
return nil, errors.New("(%s) is a directory but does not in .app - doesn't look like an app bundle")
44+
return nil, fmt.Errorf("(%s) is a directory but does not end in .app - doesn't look like an app bundle", target.Path)
4645
}
4746

4847
{

runner/processgroup_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (pg *processGroup) Wait() error {
5151
return fmt.Errorf("%w", err)
5252
}
5353

54-
return fmt.Errorf("%w", err)
54+
return nil
5555
} else {
5656
if err != nil {
5757
pg.consumer.Infof("Could not get group of process %d: %s", pid, err.Error())

0 commit comments

Comments
 (0)