0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-10 02:42:43 +00:00

Use throw in Lock API calls

This commit is contained in:
G.Ambatte
2025-04-07 14:38:25 +12:00
parent 0bca3393d4
commit 99c342f19b
3 changed files with 61 additions and 28 deletions

View File

@@ -201,6 +201,28 @@ const errorIndex = (props)=>{
## Access Denied
You need to provide correct administrator credentials to access this page.`,
// ####### Lock Errors
'60' : dedent`General Lock Error`,
'61' : dedent`Lock Error: Unable to get lock count`,
'62' : dedent`Lock Error: Cannot lock`,
'63' : dedent`Lock Error: Cannot lock - brew not found`,
'64' : dedent`Lock Error: Cannot lock - already locked`,
'65' : dedent`Lock Error: Cannot unlock`,
'66' : dedent`Lock Error: Cannot unlock - brew not found`,
'67' : dedent`Lock Error: Cannot unlock - not locked`,
'68' : dedent`Lock Error: Cannot get pending reviews`,
// ####### Other Errors
'90' : dedent` An unexpected error occurred while looking for these brews.
Try again in a few minutes.`,