denoland / denoland/website_feedback

Better error for add module

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The [website](https://deno.com/add_module) 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
- uppercase
- hyphen
- ... ?

![a module name "Jhghujigftuih" which is clearly not taken throes the error "Invalid Name/Name has been taken!"](https://github.com/denoland/apiland/assets/33468089/bd42b694-f819-446f-9c4e-33ad2eda2c57)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.