mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
perf: email proxy
This commit is contained in:
@@ -8,6 +8,9 @@ export async function request(config: any) {
|
||||
if (data) {
|
||||
throw new Error(data.message || data.msg || data.error || data);
|
||||
}
|
||||
if (e.statusText) {
|
||||
throw new Error(`请求失败:${e.request?.url} ${e.status} ${e.statusText}`);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user