coder
coder copied to clipboard
Improve `Validation failed` error message for template names with underscores
In most programming languages I'm used to, a lower dash '' is handled like a character and a normal dash '-' ist not allowed in variable names. With the template names it's the other way around: a '-' is allowed and a '' leads to a cryptic "Validation failed" after terraform ran.
I would suggest to raise some kind of warning, when the template name is invalid.
I totally agree we should have a better error message here.
Related https://github.com/coder/coder/issues/7046