Qi Xiao
1f562505f3
Rework the API for introspecting exception causes.
...
* Use a "type" field to identify the type, instead of predicates in the exc:
module.
* Make the reason values behave more like structmaps, including a Repr that
mimics a map.
This fixes #208 .
2020-06-30 22:27:07 +01:00
Qi Xiao
7b9f784cd5
pkg/eval: Rename fields of Exception, and expose fields as a pseudomap.
2020-06-29 21:26:10 +01:00
Qi Xiao
c65e970951
pkg/eval: ComposeExceptionsFromPipeline -> makePipelineError.
2020-04-10 01:25:55 +01:00
Qi Xiao
bc25c6fe1a
pkg/eval: Test all Error methods of the error types.
...
Also fix a bug in Flow.Error that results in infinite recursion.
This addresses #944 .
2020-03-31 00:36:55 +01:00
Qi Xiao
c05f11d3dc
[cleanup] pkg/diag: PPrint -> Show.
2020-03-31 00:27:08 +01:00
Qi Xiao
d44363d8cd
[cleanup]: Move pkg/util/pprinter.go to pkg/diag.
2020-03-30 23:48:22 +01:00
Qi Xiao
0d30e926c9
[cleanup] pkg/eval: Simplify ExternalCmdExit to always contain a PID.
2020-03-30 23:38:40 +01:00
Qi Xiao
9d280e9231
[cleanup] pkg/eval: Small stackTrace cleanup.
2020-03-29 14:53:34 +01:00
Qi Xiao
e45fdf7228
Move all libraries to new pkg/.
2019-12-23 20:00:59 +00:00