mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
More error information
This commit is contained in:
parent
efaebe0571
commit
dda4313b26
1 changed files with 4 additions and 4 deletions
|
@ -137,15 +137,15 @@ export function getPluginConfigPreprocessor(
|
||||||
|
|
||||||
export function sendSuccessMessage(pluginData: AnyPluginData<any>, channel, body) {
|
export function sendSuccessMessage(pluginData: AnyPluginData<any>, channel, body) {
|
||||||
const emoji = pluginData.fullConfig.success_emoji || undefined;
|
const emoji = pluginData.fullConfig.success_emoji || undefined;
|
||||||
return channel.createMessage(successMessage(body, emoji)).catch(() => {
|
return channel.createMessage(successMessage(body, emoji)).catch(err => {
|
||||||
logger.warn(`Failed to send success message to ${channel.id} (${channel.guild?.id})`);
|
logger.warn(`Failed to send success message to ${channel.id} (${channel.guild?.id}): ${err.code} ${err.message}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function sendErrorMessage(pluginData: AnyPluginData<any>, channel, body) {
|
export function sendErrorMessage(pluginData: AnyPluginData<any>, channel, body) {
|
||||||
const emoji = pluginData.fullConfig.error_emoji || undefined;
|
const emoji = pluginData.fullConfig.error_emoji || undefined;
|
||||||
return channel.createMessage(errorMessage(body, emoji)).catch(() => {
|
return channel.createMessage(errorMessage(body, emoji)).catch(err => {
|
||||||
logger.warn(`Failed to send error message to ${channel.id} (${channel.guild?.id})`);
|
logger.warn(`Failed to send error message to ${channel.id} (${channel.guild?.id}): ${err.code} ${err.message}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue