(dispatch): Oops on bad command return value. Log RET_SYS more
clearly.
This commit is contained in:
parent
9c94a23709
commit
588c5b12d5
1 changed files with 4 additions and 1 deletions
|
@ -117,8 +117,11 @@ dispatch(char *buf, char *redir)
|
||||||
case RET_SYN:
|
case RET_SYN:
|
||||||
pr("Usage: %s\n", command->c_form);
|
pr("Usage: %s\n", command->c_form);
|
||||||
break;
|
break;
|
||||||
|
case RET_SYS:
|
||||||
|
logerror("System error, command failed: %s", command->c_form);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
logerror("%s: returned bad value", command->c_form);
|
CANT_REACH();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
empth_rwlock_unlock(play_lock);
|
empth_rwlock_unlock(play_lock);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue