mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
refactor: replace api error handler with cosy err handler
This commit is contained in:
parent
4cb4695e7b
commit
b469ca7961
37 changed files with 268 additions and 250 deletions
9
internal/system/errors.go
Normal file
9
internal/system/errors.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package system
|
||||
|
||||
import "github.com/uozi-tech/cosy"
|
||||
|
||||
// System error definitions
|
||||
var (
|
||||
e = cosy.NewErrorScope("system")
|
||||
ErrInstallTimeout = e.New(40308, "installation is not allowed after 10 minutes of system startup")
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue