Debugging
This commit is contained in:
parent
52dd89926d
commit
2a713deeef
1 changed files with 9 additions and 11 deletions
|
@ -387,11 +387,10 @@ async function newsletterSubscribe(data, socket) {
|
||||||
const response = JSON.parse(error.body);
|
const response = JSON.parse(error.body);
|
||||||
|
|
||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
messageSlack(
|
messageSlack({
|
||||||
"\n" +
|
message: `via ${email}: ${response.error}`,
|
||||||
"> *NEWSLETTER ERROR:* ```" + response.error + "```" + "\n" +
|
title: "NEWSLETTER ERROR"
|
||||||
`> _Cause: ${email} interacted with the form_\n`
|
});
|
||||||
);
|
|
||||||
|
|
||||||
return send(socket, {
|
return send(socket, {
|
||||||
class: "error",
|
class: "error",
|
||||||
|
@ -401,11 +400,10 @@ async function newsletterSubscribe(data, socket) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
messageSlack(
|
messageSlack({
|
||||||
"\n" +
|
message: `via ${email} (strange error): ${response.error}`,
|
||||||
"> *NEWSLETTER ERROR:* ```¯\\_(ツ)_/¯ This should be an unreachable error```" + "\n" +
|
title: "NEWSLETTER ERROR"
|
||||||
`> _Cause: ${email} interacted with the form_\n`
|
});
|
||||||
);
|
|
||||||
|
|
||||||
return send(socket, {
|
return send(socket, {
|
||||||
class: "error",
|
class: "error",
|
||||||
|
@ -454,7 +452,7 @@ async function syncWithApi(data, socket) {
|
||||||
|
|
||||||
// TEMPORARY
|
// TEMPORARY
|
||||||
messageSlack({
|
messageSlack({
|
||||||
message: error,
|
message: error.toString(), // let's see if I get the whole thing
|
||||||
title: "DEVELOPER PROGRAM ERROR"
|
title: "DEVELOPER PROGRAM ERROR"
|
||||||
});
|
});
|
||||||
// TEMPORARY
|
// TEMPORARY
|
||||||
|
|
Loading…
Reference in a new issue