cmd/browser: remove key directory of key generation/save fails

The genkey function creates the key directory, so it should clean up
after itself if it fails after creating the directory. Without this fix,
users could end up in a state where they have to manually remove the
directory before key generation will work.

Change-Id: I63d29b303b48ad27599df19309ff1d81a10dee72
Reviewed-on: https://upspin-review.googlesource.com/13560
Reviewed-by: Rob Pike <r@golang.org>
1 file changed
tree: 7d9973220f4ffd95ed899ea3fae5a46e8eef6b74
  1. .travis.yml
  2. AUTHORS
  3. CONDUCT.md
  4. CONTRIBUTING.md
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. README.md
  9. client/
  10. cmd/
  11. codereview.cfg
  12. filesystem/
README.md

Upspin exp repository

This repository contains components that are experimental or under development.

See the master repository for more information.