errors.go 766 B

1234567891011121314
  1. package config
  2. import "github.com/uozi-tech/cosy"
  3. var (
  4. e = cosy.NewErrorScope("config")
  5. ErrPathIsNotUnderTheNginxConfDir = e.New(50006, "path: {0} is not under the nginx conf dir: {1}")
  6. ErrDstFileExists = e.New(50007, "destination file: {0} already exists")
  7. ErrNginxTestFailed = e.New(50008, "nginx test failed: {0}")
  8. ErrNginxReloadFailed = e.New(50009, "nginx reload failed: {0}")
  9. ErrCannotDeleteProtectedPath = e.New(50010, "cannot delete protected path: {0}")
  10. ErrFileNotFound = e.New(50011, "file or directory not found: {0}")
  11. ErrDeletePathNotUnderNginxConfDir = e.New(50012, "you are not allowed to delete a file outside of the nginx config path")
  12. )