Skip to content

Improve error message when using --config with a path to a file - #406

Merged
jfmengels merged 2 commits into
mainfrom
better-error-config-path
Dec 29, 2025
Merged

Improve error message when using --config with a path to a file#406
jfmengels merged 2 commits into
mainfrom
better-error-config-path

Conversation

@jfmengels

@jfmengels jfmengels commented Dec 28, 2025

Copy link
Copy Markdown
Owner

Fixes #403

Preview in image with colors:
image

Also adds a test for a similar untested error message.

@jfmengels

Copy link
Copy Markdown
Owner Author

@miniBill what do you think? Would this have helped you? If not, do you perhaps have a suggestion on how to improve the wording?

@jfmengels
jfmengels force-pushed the better-error-config-path branch from 0f31ffb to 5012daf Compare December 28, 2025 23:16
@miniBill

Copy link
Copy Markdown

I mean, I was able to look at the wrong path and deduce what was wrong but yeah, this is a much better message. In general I think that any time an Elm tool produces a JS stack trace it's a bug (or a stack overflow / OOM)

@jfmengels
jfmengels merged commit d569eda into main Dec 29, 2025
3 checks passed
@jfmengels
jfmengels deleted the better-error-config-path branch December 29, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unhandled "weird path" in --config

2 participants