minor fixes, change help text
This commit is contained in:
@@ -270,8 +270,6 @@ func (c *Cache) Start(ctx context.Context) error {
|
||||
if c.mounter != nil {
|
||||
if err := c.mounter.Mount(ctx); err != nil {
|
||||
c.logger.Error().Err(err).Msgf("Failed to mount %s", c.config.Name)
|
||||
} else {
|
||||
c.logger.Info().Msgf("Mounted %s at %s", c.config.Name, c.mounter.LocalPath)
|
||||
}
|
||||
} else {
|
||||
c.logger.Warn().Msgf("Mounting is disabled for %s", c.config.Name)
|
||||
|
||||
@@ -362,7 +362,7 @@
|
||||
</label>
|
||||
<input type="text" class="input input-bordered" name="rclone.mount_path" id="rclone.mount_path" placeholder="/mnt/decypharr">
|
||||
<div class="label">
|
||||
<span class="label-text-alt">Base directory where all providers will be mounted (e.g., /mnt/decypharr/realdebrid)</span>
|
||||
<span class="label-text-alt">Base directory where all providers will be mounted (e.g., /mnt/decypharr)</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -471,6 +471,7 @@ func (h *Handler) handleGet(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
if streamErr.StatusCode > 0 {
|
||||
h.logger.Trace().Err(err).Msgf("Error streaming %s", fi.Name())
|
||||
http.Error(w, streamErr.Error(), streamErr.StatusCode)
|
||||
return
|
||||
} else {
|
||||
@@ -480,6 +481,7 @@ func (h *Handler) handleGet(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
} else {
|
||||
// Generic error
|
||||
h.logger.Error().Err(err).Msgf("Error streaming file %s", fi.Name())
|
||||
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user