Fix error messages
This commit is contained in:
parent
1359bd9747
commit
4d99378a25
|
@ -40,12 +40,9 @@ export const webServer = express()
|
||||||
);
|
);
|
||||||
})().catch(error => {
|
})().catch(error => {
|
||||||
console.error(
|
console.error(
|
||||||
`Error creating feed: ${JSON.stringify(
|
`Error creating feed: ${JSON.stringify({ name, identifier }, null, 2)}`
|
||||||
{ name, identifier, error },
|
|
||||||
null,
|
|
||||||
2
|
|
||||||
)}`
|
|
||||||
);
|
);
|
||||||
|
console.error(error);
|
||||||
next(error);
|
next(error);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
@ -107,12 +104,9 @@ export const emailServer = new SMTPServer({
|
||||||
callback();
|
callback();
|
||||||
})().catch(error => {
|
})().catch(error => {
|
||||||
console.error(
|
console.error(
|
||||||
`Error receiving email: ${JSON.stringify(
|
`Error receiving email: ${JSON.stringify({ session, email }, null, 2)}`
|
||||||
{ session, email, error },
|
|
||||||
null,
|
|
||||||
2
|
|
||||||
)}`
|
|
||||||
);
|
);
|
||||||
|
console.error(error);
|
||||||
stream.resume();
|
stream.resume();
|
||||||
callback(new Error("Failed to receive message. Please try again."));
|
callback(new Error("Failed to receive message. Please try again."));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue