-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: await routeHandler * fix: return after next * feat: send LockedError instead of ConflictError * fix: import lockedError * Fix/git file lock (#905) * feat: add hasGitFileLock * feat: make check for git file lock in route handlers * fix: always return true if something exists on the path * fix: return if handleGitFileLock fails * fix: use lockedError instead of conflictError * chore: update error message
- Loading branch information
1 parent
78f6f21
commit 49da69c
Showing
4 changed files
with
83 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { BaseIsomerError } from "./BaseError" | ||
|
||
export default class LockedError extends BaseIsomerError { | ||
constructor(message: string) { | ||
super({ | ||
status: 423, | ||
code: "LockedError", | ||
message, | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters