✨ Upgrade Go version to 1.24.0 and update various dependencies, including NATS, Viper, and Go modules. Refactor error handling in configuration loading and validation processes for improved clarity and consistency.
This commit is contained in:
@@ -100,8 +100,8 @@ func (h *SITAHeader) Validate() error {
|
||||
if len(h.SendTime) != 6 {
|
||||
err := "invalid send_time format"
|
||||
|
||||
log.Errorf("error validating send_time: %v", err)
|
||||
return fmt.Errorf(err)
|
||||
log.Errorf("error validating send_time: %s", err)
|
||||
return fmt.Errorf("%s", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user