mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Improve TPTiming time format error handling
This commit is contained in:
committed by
Dan Christian Bogos
parent
3acc76474d
commit
7664ffccb4
@@ -273,6 +273,10 @@ func ErrNotConvertibleTF(from, to string) error {
|
||||
return fmt.Errorf("%s : from: %s to:%s", ErrNotConvertibleNoCaps.Error(), from, to)
|
||||
}
|
||||
|
||||
func ErrInvalidTime(s string) error {
|
||||
return fmt.Errorf("INVALID_TIME:%s", s)
|
||||
}
|
||||
|
||||
// NewSTIRError returns a error with a *stir_authorize prefix
|
||||
func NewSTIRError(reason string) error {
|
||||
return fmt.Errorf("%s: %s", MetaSTIRAuthenticate, reason)
|
||||
|
||||
Reference in New Issue
Block a user