Commit Graph

10 Commits

Author SHA1 Message Date
Qi Xiao
f1b9fb0b45 Eq -> Equal. 2017-08-30 19:47:50 +02:00
Qi Xiao
4a7a4184ed Add an Eqer interface, and implement for many types.
This is to prepare for the transition to using the custom persistent map
implementation, which requires an Eq method for key types.
2017-07-14 01:28:51 +01:00
xofyarg
deb83e2f8a Ignore OK when printing PipelineError (#361)
The program crashes when trying to print PipelineError if there's an
OK inside since its content is barely empty. Simple ignore the OK
value will fix it.

Or maybe we should print that out as well to better align with the
pipeline?
2017-06-19 22:57:51 +02:00
Qi Xiao
106600a7da Fix misspellings. 2017-05-21 23:57:57 +01:00
Qi Xiao
856dde57b6 Fix representation of Exception. 2017-03-07 01:08:37 +00:00
Qi Xiao
216dad636e Print causes when pprinting PipelineError. 2017-01-29 18:35:18 +00:00
Qi Xiao
571e0879d0 Make util.Pprinter take an indent string. 2017-01-29 18:20:35 +00:00
Qi Xiao
9281abad90 Don't make PipelineError when only one command in a pipeline errs. 2017-01-29 18:19:31 +00:00
Qi Xiao
ddbbfb9d33 Clean up exception representation.
Exceptions are now already represented by eval.Exception, which consist of an
error and a traceback. eval.Error is dropped.
2017-01-29 02:30:04 +00:00
Qi Xiao
ee81f0680c Use specific error types for parse, compile and eval.
Generic error types in util are ditched.
2017-01-28 14:39:52 +00:00