mirror of
https://github.com/franjsco/trackmyd-bot
synced 2025-06-05 22:19:29 +02:00
edit template - deviceNotFound
This commit is contained in:
7
utils.js
7
utils.js
@@ -60,7 +60,12 @@ function templateError(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function templateDeviceNotFound(data) {
|
function templateDeviceNotFound(data) {
|
||||||
const msg = `Device _"${data}"_ not found`;
|
let msg;
|
||||||
|
if (data) {
|
||||||
|
msg = `Device _"${data}"_ not found`;
|
||||||
|
} else {
|
||||||
|
msg = 'Devices not found';
|
||||||
|
}
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user