Skip to content

[#242] Better error message when `tezos-client` program is missing

Sandeep.C.R requested to merge sras/#242-err-for-missing-tzclient into master

Description

Changes the error that is thrown when tezos-client program in missing to be more helpful. Main changes are

  1. Wrap readProcessWithExitCode in helper function that catches the exception and prints a helpful error.
  2. Add ansi-terminal package to color the printed error so that it will be noticed easily.

Related issue(s)

Resolves #242 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Sandeep.C.R

Merge request reports