mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
enhance(wip): error handle
This commit is contained in:
parent
3f95ae5d90
commit
650196d06a
93 changed files with 5228 additions and 3738 deletions
10
internal/site/errors.go
Normal file
10
internal/site/errors.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package site
|
||||
|
||||
import "github.com/uozi-tech/cosy"
|
||||
|
||||
var (
|
||||
e = cosy.NewErrorScope("site")
|
||||
ErrSiteNotFound = e.New(40401, "site not found")
|
||||
ErrDstFileExists = e.New(50001, "destination file already exists")
|
||||
ErrSiteIsEnabled = e.New(50002, "site is enabled")
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue