diff --git a/src/routes/support.js b/src/routes/support.js index 8e0f527d9..d193eb0e7 100644 --- a/src/routes/support.js +++ b/src/routes/support.js @@ -48,7 +48,7 @@ async function createTicket(req, res, next) { if (supportConfig.email !== constants.SUPPORT_EMAIL) return next(new HttpError(503, 'Sending to non-cloudron email not implemented yet')); const [ticketError, result] = await safe(appstore.createTicket(_.extend({ }, req.body, { email: req.user.email, displayName: req.user.displayName }), AuditSource.fromRequest(req))); - if (ticketError) return next(new HttpError(503, `Error contacting cloudron.io: ${error.message}. Please email ${constants.SUPPORT_EMAIL}`)); + if (ticketError) return next(new HttpError(503, `Error contacting cloudron.io: ${ticketError.message}. Please email ${constants.SUPPORT_EMAIL}`)); next(new HttpSuccess(201, result)); }