mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Refactor org and user routes
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
@@ -24,6 +24,16 @@ export class Unreachable extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
export class NotFoundError extends Error {
|
||||
constructor(message?: string) {
|
||||
if (message) {
|
||||
super(`not found: ${message}`);
|
||||
} else {
|
||||
super(`not found`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class AssertionError extends Error {
|
||||
constructor(message?: string) {
|
||||
if (message) {
|
||||
|
||||
Reference in New Issue
Block a user