diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-10-29 22:48:07 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-10-29 22:59:00 -0700 |
commit | d3883126bfca47f1af57a6388ff7b00c997c924f (patch) | |
tree | 2396474da0cf1edbd3920d87f2a57c489c81e314 /storage/timezone.go | |
parent | e38333e272b24b6fcfa5399aa944f771558eb7aa (diff) |
Improve storage module
Diffstat (limited to 'storage/timezone.go')
-rw-r--r-- | storage/timezone.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/timezone.go b/storage/timezone.go index e5174ca..d21ac26 100644 --- a/storage/timezone.go +++ b/storage/timezone.go @@ -14,14 +14,14 @@ func (s *Storage) Timezones() (map[string]string, error) { timezones := make(map[string]string) rows, err := s.db.Query(`SELECT name FROM pg_timezone_names() ORDER BY name ASC`) if err != nil { - return nil, fmt.Errorf("unable to fetch timezones: %v", err) + return nil, fmt.Errorf(`store: unable to fetch timezones: %v`, err) } defer rows.Close() for rows.Next() { var timezone string if err := rows.Scan(&timezone); err != nil { - return nil, fmt.Errorf("unable to fetch timezones row: %v", err) + return nil, fmt.Errorf(`store: unable to fetch timezones row: %v`, err) } if !strings.HasPrefix(timezone, "posix") && !strings.HasPrefix(timezone, "SystemV") && timezone != "localtime" { |