chore: updates

This commit is contained in:
Simon Ding
2024-07-31 20:59:40 +08:00
parent 9350e376f4
commit b765f16ea6
5 changed files with 14 additions and 4 deletions

View File

@@ -129,7 +129,7 @@ func (s *Server) Serve() error {
func (s *Server) TMDB() (*tmdb.Client, error) {
api := s.db.GetSetting(db.SettingTmdbApiKey)
if api == "" {
return nil, errors.New("tmdb api not set")
return nil, errors.New("TMDB apiKey not set")
}
return tmdb.NewClient(api)
}