Skip to content

Commit

Permalink
Log message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samr28 committed Oct 14, 2017
1 parent d9d709c commit fe92915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function rmByName(robot, value) {
}
function rmById(robot, id) {
if (id > getAgendaLength(robot)) {
console.log(new Error(`Value '${id} is out of bounds of ${getAgendaLength(robot)}`));
console.log(new Error(`Value '${id}' is out of bounds of ${getAgendaLength(robot)}`));
return new Error(`There are only ${getAgendaLength(robot)}. But you tried to remove item #${id}.`);
}
removeBrainDataById(robot, id);
Expand Down

0 comments on commit fe92915

Please sign in to comment.