coder icon indicating copy to clipboard operation
coder copied to clipboard

Improve `Validation failed` error message for template names with underscores

Open mnebelnlb opened this issue 2 years ago • 2 comments

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.

mnebelnlb avatar Oct 13 '23 07:10 mnebelnlb

I totally agree we should have a better error message here.

bpmct avatar Nov 15 '23 00:11 bpmct

Related https://github.com/coder/coder/issues/7046

bpmct avatar Nov 15 '23 00:11 bpmct