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. AUTHORS
  2. CONTRIBUTING.md
  3. CONTRIBUTORS
  4. LICENSE
  5. README.md
  6. cmd/
  7. codereview.cfg
  8. internal/
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