fix: 修复状态码类型,引入自定义错误

This commit is contained in:
amtoaer
2024-04-02 23:13:52 +08:00
parent beb3634e33
commit 377f3bb22a
8 changed files with 18 additions and 11 deletions

5
src/error.rs Normal file
View File

@@ -0,0 +1,5 @@
use thiserror::Error;
#[derive(Error, Debug)]
#[error("Bilibili api request too frequently, abort all tasks and try again later")]
pub struct DownloadAbortError();