satman: fix error messages

This commit is contained in:
Sebastien Bourdeauducq 2018-09-11 20:10:52 +08:00
parent 36e3fedfc6
commit 5439abaa9d
1 changed files with 2 additions and 2 deletions

View File

@ -70,12 +70,12 @@ impl Repeater {
return; return;
} }
if let Err(e) = self.load_routing_table(routing_table) { if let Err(e) = self.load_routing_table(routing_table) {
error!("[REP#{}] failed to sync TSC ({})", self.repno, e); error!("[REP#{}] failed to load routing table ({})", self.repno, e);
self.state = RepeaterState::Failed; self.state = RepeaterState::Failed;
return; return;
} }
if let Err(e) = self.set_rank(rank + 1) { if let Err(e) = self.set_rank(rank + 1) {
error!("[REP#{}] failed to sync TSC ({})", self.repno, e); error!("[REP#{}] failed to set rank ({})", self.repno, e);
self.state = RepeaterState::Failed; self.state = RepeaterState::Failed;
return; return;
} }