Add a wrapper for failures

Merged E. Rivas requested to merge er433/changed/failwith-wrapper into dev

This MR wraps failures so that they are presented in a less noisy way to the user:

$ ligo transpile contract dd.mligo jsligo
An internal error ocurred. Please, contact the developers.

In case that --format dev was passed, then the failure/exception message is printed:

$ ligo transpile contract dd.mligo jsligo --format dev
An internal error ocurred. Please, contact the developers.
TODO: decompile matching cases.
  • has a changelog entry
Edited by E. Rivas