mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
enhance: error handling #993
This commit is contained in:
parent
e77fd308e2
commit
163a84864a
22 changed files with 793 additions and 718 deletions
|
@ -10,4 +10,5 @@ var (
|
|||
ErrSiteIsInMaintenance = e.New(50003, "site is in maintenance mode")
|
||||
ErrNginxTestFailed = e.New(50004, "nginx test failed: {0}")
|
||||
ErrNginxReloadFailed = e.New(50005, "nginx reload failed: {0}")
|
||||
ErrReadDirFailed = e.New(50006, "read dir failed: {0}")
|
||||
)
|
||||
|
|
|
@ -5,8 +5,9 @@ import "github.com/uozi-tech/cosy"
|
|||
var (
|
||||
e = cosy.NewErrorScope("stream")
|
||||
ErrStreamNotFound = e.New(40401, "stream not found")
|
||||
ErrDstFileExists = e.New(50001, "destination file already exists")
|
||||
ErrStreamIsEnabled = e.New(50002, "stream is enabled")
|
||||
ErrNginxTestFailed = e.New(50003, "nginx test failed: {0}")
|
||||
ErrNginxReloadFailed = e.New(50004, "nginx reload failed: {0}")
|
||||
ErrDstFileExists = e.New(50001, "destination file already exists")
|
||||
ErrStreamIsEnabled = e.New(50002, "stream is enabled")
|
||||
ErrNginxTestFailed = e.New(50003, "nginx test failed: {0}")
|
||||
ErrNginxReloadFailed = e.New(50004, "nginx reload failed: {0}")
|
||||
ErrReadDirFailed = e.New(50005, "read dir failed: {0}")
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue