This commit is contained in:
おさむのひと 2025-04-28 20:27:44 +09:00
parent 85a49c8657
commit 4b2bf59a60
2 changed files with 9 additions and 2 deletions

View File

@ -196,7 +196,11 @@ export async function uploadFile(
body.append('name', filename);
return await fetch(`https://${host}/api/drive/files/create`, { method: 'POST', body })
.then(async res => await res.json());
.then(async res => await res.json())
.catch(err => {
console.error('-- error :', JSON.stringify(err));
throw err;
});
}
export async function addCustomEmoji(

View File

@ -122,7 +122,10 @@ export class APIClient {
...body.error,
});
}
}).catch(reject);
}).catch(err => {
console.error('-- error :', JSON.stringify(err));
reject(err);
});
});
}
}