Commit 439358bf by Michel Normand Committed by Daniel Lezcano

avoid two times error msg about invalid state

remove an error message in lxc_wait.c that duplicate an already existing error message in state.c Signed-off-by: 's avatarMichel Normand <normand@fr.ibm.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 549153a7
......@@ -79,10 +79,9 @@ static int fillwaitedstates(char *strstates, int *states)
while (token) {
state = lxc_str2state(token);
if (state < 0) {
ERROR("invalid state %s", token);
if (state < 0)
return -1;
}
states[state] = 1;
token = strtok_r(NULL, "|", &saveptr);
......
......@@ -56,7 +56,7 @@ lxc_state_t lxc_str2state(const char *state)
if (!strcmp(strstate[i], state))
return i;
ERROR("invalid specified state %s", state);
ERROR("invalid state '%s'", state);
return -1;
}
......
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