[cleanup] Replace string-matching error detection with typed errors #39
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/chat#39
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From QA Audit (#25 comment)
Severity: SHOULD-FIX
strings.Contains(err.Error(), "UNIQUE")is used ininternal/handlers/api.goandinternal/handlers/auth.goto detect duplicate nick errors. Fragile if SQLite driver changes message format.Suggested fix: Use
errors.Aswith the SQLite driver's error type.