mirror of
https://github.com/nabbar/golib.git
synced 2025-10-13 03:23:47 +08:00
- Chg :
- Package AWS : extend aws helper to manage accessKey - Package Cobra : refactor configure function to allow use independant part of the command - Package ldap : fix error - Package config - interface : add shutdown method - components: - request : syntax error in default json - mail : syntax error default json - ldap : - allow to access loaded config - mutex lock circular - tls : allow to access loaded config - Package request : - add error managment - fix error with circular mutex - fix bug with empty response body - fix some other errors - Package status : default label in component default config - Bump dependancies - Bump yaml to v3 (in waiting fix for CVE-2022-28948) - force dependancies gogo/protobuff to v1.3.2+
This commit is contained in:
@@ -49,14 +49,13 @@ const (
|
||||
ErrorLDAPGroupNotFound
|
||||
)
|
||||
|
||||
var isCodeError = false
|
||||
var isCodeError = errors.ExistInMapMessage(ErrorEmptyParams)
|
||||
|
||||
func IsCodeError() bool {
|
||||
return isCodeError
|
||||
}
|
||||
|
||||
func init() {
|
||||
isCodeError = errors.ExistInMapMessage(ErrorEmptyParams)
|
||||
errors.RegisterIdFctMessage(ErrorEmptyParams, getMessage)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user