s2-cli
s2-cli copied to clipboard
[Detail Bug] Broken GitHub issue URL in BUG_HELP shows 404
Detail Bug Report
https://app.detail.dev/org_89d327b3-b883-4365-b6a3-46b6701342a9/bugs/bug_be316953-4cac-4262-9c67-cbfa5fcb9e43
Summary
- Context: The
BUG_HELPconstant insrc/error.rsprovides a help message shown to users when they encounter JSON serialization errors. - Bug: The help message contains an incorrect GitHub repository URL that returns a 404 error.
- Actual vs. expected: Users are directed to
https://github.com/s2-cli/issuesinstead of the correct URLhttps://github.com/s2-streamstore/s2-cli/issues. - Impact: Users who encounter configuration errors cannot report bugs because the provided URL is broken.
Code with bug
const BUG_HELP: &str = color_print::cstr!(
"\n<cyan><bold>Looks like you may have encountered a bug!</bold></cyan>\n\n\
<green> > Report this issue here: </green>\n\
<bold>https://github.com/s2-cli/issues</bold> // <-- BUG 🔴 incorrect repository URL
"
);
HTTP verification
$ curl -s -o /dev/null -w "%{http_code}" https://github.com/s2-cli/issues
404
$ curl -s -o /dev/null -w "%{http_code}" https://github.com/s2-streamstore/s2-cli/issues
200
The incorrect URL returns a 404, while the correct repository URL is reachable.
Recommended fix
In src/error.rs, update BUG_HELP to use the correct repository URL:
<bold>https://github.com/s2-streamstore/s2-cli/issues</bold> // <-- FIX 🟢