about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/yt/src/downloader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nixpkgs/pkgs/yt/src/downloader.rs')
-rw-r--r--sys/nixpkgs/pkgs/yt/src/downloader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nixpkgs/pkgs/yt/src/downloader.rs b/sys/nixpkgs/pkgs/yt/src/downloader.rs
index 1733500a..34627f70 100644
--- a/sys/nixpkgs/pkgs/yt/src/downloader.rs
+++ b/sys/nixpkgs/pkgs/yt/src/downloader.rs
@@ -10,7 +10,7 @@ use std::{
 };
 
 use anyhow::{bail, Context, Result};
-use log::{debug, warn};
+use log::{debug, error, warn};
 use url::Url;
 
 use crate::constants::{status_path, CONCURRENT, DOWNLOAD_DIR, MPV_FLAGS, YT_DLP_FLAGS};
@@ -184,7 +184,7 @@ fn download_url(url: &Url) -> Result<PathBuf> {
 
     let status = yt_dlp.status().context("Failed to run yt-dlp")?;
     if !status.success() {
-        bail!("yt_dlp execution failed with error: '{}'", status);
+        error!("yt-dlp execution failed with error: '{}'", status);
     }
 
     let mut path = String::new();