From cd262383f59517692f9e341fbd62634873b9256a Mon Sep 17 00:00:00 2001 From: Francesco Esposito <33671357+frab1t@users.noreply.github.com> Date: Thu, 21 Feb 2019 13:05:33 +0100 Subject: [PATCH] add error template --- utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils.js b/utils.js index 01360ab..3f0d1ab 100644 --- a/utils.js +++ b/utils.js @@ -50,8 +50,14 @@ function templateDevicesList(data) { return msg; } +function templateError(data) { + const msg = 'Error, check the server.log'; + return msg; +} + module.exports.templateStart = templateStart; module.exports.templateHelp = templateHelp; module.exports.templateUnauthorizedUser = templateUnauthorizedUser; module.exports.templatePosition = templatePosition; module.exports.templateDevicesList = templateDevicesList; +module.exports.templateError = templateError;