fix:#7 fixed models lint

This commit is contained in:
Elmar Kresse
2024-06-10 20:43:12 +02:00
parent e325297530
commit 277edce302
3 changed files with 4 additions and 5 deletions

View File

@@ -18,7 +18,6 @@ package model
import (
"encoding/json"
"errors"
"fmt"
"strings"
"time"
@@ -79,5 +78,5 @@ func (jt *JSONTime) UnmarshalJSON(b []byte) error {
*jt = JSONTime(t)
return nil
}
return errors.New(fmt.Sprintf("Invalid date format: %s", timeString))
return fmt.Errorf("error parsing time string %s: %w", timeString, err)
}