mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 21:20:07 +08:00
Throw original error in sendMsg method
Replaces the re-throwing of a new Error with the original error object in the sendMsg method, preserving the original error stack and type for better debugging.
This commit is contained in:
parent
511fb82ce0
commit
3dd56c711e
@ -1182,7 +1182,7 @@ export class OneBotMsgApi {
|
|||||||
}, returnMsg.msgId);
|
}, returnMsg.msgId);
|
||||||
return returnMsg;
|
return returnMsg;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error((error as Error).message);
|
throw error;
|
||||||
} finally {
|
} finally {
|
||||||
cleanTaskQueue.addFiles(deleteAfterSentFiles, timeout);
|
cleanTaskQueue.addFiles(deleteAfterSentFiles, timeout);
|
||||||
// setTimeout(async () => {
|
// setTimeout(async () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user