mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-04-25 23:06:11 +02:00
Standardize error responses with consistent format and human-readable messages (#667)
This commit is contained in:
@@ -220,6 +220,7 @@ export default class Repository {
|
||||
) {
|
||||
throw new AnonymousError("repository_not_ready", {
|
||||
object: this,
|
||||
httpStatus: 503,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -356,6 +357,7 @@ export default class Repository {
|
||||
await this.resetSate();
|
||||
throw new AnonymousError("branch_not_found", {
|
||||
object: this,
|
||||
httpStatus: 404,
|
||||
});
|
||||
}
|
||||
this._model.anonymizeDate = new Date();
|
||||
|
||||
Reference in New Issue
Block a user