ux: human-readable diagnostics (issue #32) #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/issue-32-human-readable-diagnostics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
DSL.Diagnostics.renderValidationError :: ValidationError -> Text— human-readable message per constructorDSL.Compile.compileResultto userenderDomainError(IR) andrenderValidationErrorinstead ofshowdumpsIntindex field fromLocation— type now honestly reflects what it carriesBefore:
After:
IR changes (in separate IR commit
37933a6):renderDomainErroradded toIR.Domain.Error; allFromJSONparsers replacedfail . showwithfail . T.unpack . renderDomainError.Test Plan
DSL.DiagnosticsSpec— 7 unit tests, one perValidationErrorconstructorDSL.CompileSpec— 2 new cases asserting exact human-readable message stringsDSL.ValidateSpec— existing tests updated to match newLocationshape; all passnix flake checkpassesCloses #32