cmd/viewcore: don't panic because of missing executable

This exposes a new error type ExecNotFoundError
to allow the viewcore main binary to recognize the error type and
suggest --exe flag defined in the main package.

Fixes golang/go#27322

Change-Id: I009b0cb9833a64b7cd5cba69b2ecc49327917581
Reviewed-on: https://go-review.googlesource.com/136516
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2 files changed
tree: 539ddaf6439f3d99a4d24d96295093c83a8f20d4
  1. cmd/
  2. internal/
  3. AUTHORS
  4. codereview.cfg
  5. CONTRIBUTING.md
  6. CONTRIBUTORS
  7. LICENSE
  8. README.md
README.md

Go Debug

This repository holds utilities and libraries for debugging Go programs.

WARNING! Please expect breaking changes and unstable APIs. Most of them are currently are at an early, experimental stage.

Report Issues & Send Changes