Compare commits

...

4 Commits

Author SHA1 Message Date
おさむのひと 2eb9d5ad57 Revert "add log"
This reverts commit c5a73d57da.
2025-04-28 22:22:57 +09:00
おさむのひと a8fdfdccd1 fix 2025-04-28 22:15:14 +09:00
おさむのひと c5a73d57da add log 2025-04-28 21:46:08 +09:00
おさむのひと d561a06ba2 Revert "add log"
This reverts commit 4b2bf59a60.
2025-04-28 21:45:07 +09:00
3 changed files with 8 additions and 16 deletions

View File

@ -491,17 +491,16 @@ export class ApiCallService implements OnApplicationShutdown {
if (multipartFile.file.truncated) { if (multipartFile.file.truncated) {
throw createTooLongError(); throw createTooLongError();
} }
} finally { } catch (err) {
cleanup(); cleanup();
throw err;
} }
const attachmentFile = {
name: multipartFile.filename,
path,
};
return { return {
attachmentFile, attachmentFile: {
name: multipartFile.filename,
path,
},
cleanup, cleanup,
}; };
} }

View File

@ -196,11 +196,7 @@ export async function uploadFile(
body.append('name', filename); body.append('name', filename);
return await fetch(`https://${host}/api/drive/files/create`, { method: 'POST', body }) 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( export async function addCustomEmoji(

View File

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