diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-01-30 12:03:16 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-01-30 12:03:16 -0800 |
commit | 1cfcb62fa11e2f57fb982500c7df810826988dfc (patch) | |
tree | 1f330bc2fc87765438f318e934890848035b1285 /relayout | |
parent | 2ac236e2bc7b6c392142b296b9f6353ee6d9662e (diff) | |
download | mu-1cfcb62fa11e2f57fb982500c7df810826988dfc.tar.gz |
2617 - better error messages
When we stash a value, mu does several levels of work for us: a) First it inserts instructions above the stash to convert the value to text using to-text-line. b) to-text-line calls to-text. Both are shape-shifting, so multiple levels of specialization happen. To give a good error message, we track the 'stack' of current specializations at the time of the error, and also check if the offending instruction at the top-most level looks like it was inserted while rewriting stash instructions. Manual example (since booleans can't be stashed at the moment): x:boolean <- copy 1/true stash x
Diffstat (limited to 'relayout')
0 files changed, 0 insertions, 0 deletions