lune
lune copied to clipboard
unable to find `.luaurc` if `.luaurc` contains invalid JSON syntax
Context
Writing this after I raised an initial discussion in the OSS Discord here
Issue
The error failed to find alias '{alias}' (no .luaurc)
presents itself and can confuse the consumer if the .luaurc
file itself has invalid syntax, for instance - if someone tries to add comments into JSON.
Solution
Ideally, an alternative error is shown, something along the lines of .luaurc contains invalid JSON syntax, ln X