Skip to content

Commit

Permalink
Small formatting fix (gopasspw#2165)
Browse files Browse the repository at this point in the history
RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
  • Loading branch information
dominikschulz authored Mar 17, 2022
1 parent 88633af commit 4caa582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/action/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ func (s *Action) syncMount(ctx context.Context, mp string) error {
debug.Log("Push succeeded")
out.Printf(ctxno, color.GreenString("OK"))
case errors.Is(err, store.ErrGitNoRemote):
out.Printf(ctxno, "Skipped (no remote)")
out.Printf(ctx, "Skipped (no remote)")
debug.Log("Failed to push %q to its remote: %s", name, err)
return err
case errors.Is(err, backend.ErrNotSupported):
out.Printf(ctxno, "Skipped (not supported)")
case errors.Is(err, store.ErrGitNotInit):
out.Printf(ctxno, "Skipped (no Git repo)")
default: // any other error
out.Errorf(ctxno, "Failed to push %q to its remote: %s", name, err)
out.Errorf(ctx, "Failed to push %q to its remote: %s", name, err)
return err
}

Expand Down

0 comments on commit 4caa582

Please sign in to comment.