v2-dev
xiaojunnuo 2025-09-06 20:07:50 +08:00
parent f6ea9c1300
commit 40475e02ec
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export class UpyunClient {
Cookie: req.cookie
}
});
if (res.msg.errors.length > 0) {
if (res.msg?.errors?.length > 0) {
throw new Error(JSON.stringify(res.msg));
}
if(res.data?.error_code){