Skip to content

Commit

Permalink
Fix typo (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
rememberYou authored and dominikschulz committed Jan 30, 2018
1 parent 4f22b52 commit df3c3c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions store/root/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (r *Store) Move(ctx context.Context, from, to string) error {
func (r *Store) Delete(ctx context.Context, name string) error {
ctx, store, sn := r.getStore(ctx, name)
if sn == "" {
return errors.Errorf("can not delete a mount point. Use `gopass mount remove %s`", store.Alias())
return errors.Errorf("can not delete a mount point. Use `gopass mounts remove %s`", store.Alias())
}
return store.Delete(ctx, sn)
}
Expand All @@ -74,10 +74,10 @@ func (r *Store) Delete(ctx context.Context, name string) error {
func (r *Store) Prune(ctx context.Context, tree string) error {
for mp := range r.mounts {
if strings.HasPrefix(mp, tree) {
return errors.Errorf("can not prune subtree with mounts. Unmount first: `gopass mount remove %s`", mp)
return errors.Errorf("can not prune subtree with mounts. Unmount first: `gopass mounts remove %s`", mp)
}
}

ctx, store, tree := r.getStore(ctx, tree)
return store.Prune(ctx, tree)
}
}

0 comments on commit df3c3c3

Please sign in to comment.