diff --git a/internal/api/import.go b/internal/api/import.go index c9667a992..737e2c21b 100644 --- a/internal/api/import.go +++ b/internal/api/import.go @@ -29,8 +29,7 @@ func GetImportOptions(router *gin.RouterGroup, conf *config.Config) { dirs, err := fs.Dirs(conf.ImportPath(), true) if err != nil { - c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"error": txt.UcFirst(err.Error())}) - return + log.Errorf("import: %s", err) } c.JSON(http.StatusOK, gin.H{"dirs": dirs}) diff --git a/internal/api/index.go b/internal/api/index.go index 053a76e7d..1213f58d6 100644 --- a/internal/api/index.go +++ b/internal/api/index.go @@ -27,8 +27,7 @@ func GetIndexingOptions(router *gin.RouterGroup, conf *config.Config) { dirs, err := fs.Dirs(conf.OriginalsPath(), true) if err != nil { - c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"error": txt.UcFirst(err.Error())}) - return + log.Errorf("index: %s", err) } c.JSON(http.StatusOK, gin.H{"dirs": dirs})