denoland / website_feedback

For reporting issues & suggestions for deno.com and deno.land
9 stars 1 forks source link

Better error for add module #42

Open vwkd opened 1 year ago

vwkd commented 1 year ago

The website for creating a module should distinguish between an invalid name error and an existing module error.

Currently, it shows a generic "Invalid Name/Name has been taken!" error.

This is confusing, because it's not clear what's wrong which makes the error not actionable.

Instead, it should show if a name is already taken or if a name is invalid. If not in the error directly, at least the description should mention what makes a name invalid. For example

a module name "Jhghujigftuih" which is clearly not taken throes the error "Invalid Name/Name has been taken!"