Commit 30e13688 authored by Mac Newbold's avatar Mac Newbold

Make sure _all_ the mail we send has node names in it...

parent c44540fd
...@@ -437,7 +437,7 @@ sub stateTransition($$) { ...@@ -437,7 +437,7 @@ sub stateTransition($$) {
handleCtrlEvent($node,$trig); handleCtrlEvent($node,$trig);
next; next;
}; };
notify("Unknown trigger '$trig' in $mode/$newstate!\n"); notify("Unknown trigger '$trig' for $node in $mode/$newstate!\n");
} }
} }
...@@ -484,11 +484,11 @@ sub opModeTransition($$) { ...@@ -484,11 +484,11 @@ sub opModeTransition($$) {
if (defined($trans{$newmode})) { if (defined($trans{$newmode})) {
$nextstate=$trans{$newmode}; $nextstate=$trans{$newmode};
} else { } else {
notify("Invalid mode transition from ". notify("Invalid mode transition for $node from ".
"$mode/$oldstate to $newmode!\n"); "$mode/$oldstate to $newmode!\n");
} }
} else { } else {
notify("Invalid mode transition from $mode/$oldstate: ". notify("Invalid mode transition for $node from $mode/$oldstate: ".
"Not a valid mode transition state!\n"); "Not a valid mode transition state!\n");
} }
if (!$nextstate) { $nextstate=$oldstate; } if (!$nextstate) { $nextstate=$oldstate; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment