mirror of
https://github.com/franjsco/trackmyd-bot
synced 2025-02-22 06:17:53 +01:00
edit template - deviceNotFound
This commit is contained in:
parent
4da9c3390b
commit
c7cc900a9a
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user