Skip to content

Commit

Permalink
Update log/command.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
  • Loading branch information
maaslalani and aymanbagabas authored Nov 8, 2023
1 parent 793e782 commit 1f2e594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (o Options) Run() error {
if o.File != "" {
f, err := os.OpenFile(o.File, os.O_CREATE|os.O_WRONLY|os.O_APPEND, os.ModePerm)
if err != nil {
return errors.New("error opening file")
return fmt.Errorf("error opening file: %w", err)

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / lint-soft

undefined: fmt (typecheck)

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / lint-soft

undefined: fmt) (typecheck)

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

undefined: fmt

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / lint-soft

undefined: fmt (typecheck)

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / lint-soft

undefined: fmt) (typecheck)

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / lint

undefined: fmt (typecheck)

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / lint

undefined: fmt) (typecheck)

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

undefined: fmt

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / build (macos-latest)

undefined: fmt

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / lint

undefined: fmt (typecheck)

Check failure on line 20 in log/command.go

View workflow job for this annotation

GitHub Actions / lint

undefined: fmt) (typecheck)
}

defer f.Close() //nolint:errcheck
Expand Down

0 comments on commit 1f2e594

Please sign in to comment.