Add command exec error handling

This commit is contained in:
Paul Fariello
2018-03-23 21:09:48 +02:20
parent 925cd488c1
commit 40eee1caab
3 changed files with 17 additions and 1 deletions

View File

@@ -1112,7 +1112,7 @@ _command_exec_response_handler(xmpp_stanza_t *const stanza, void *const userdata
log_debug("Error executing command %s for %s: %s", command, from, error_message);
ProfWin *win = wins_get_by_string(from);
if (win) {
win_command_list_error(win, error_message);
win_command_exec_error(win, command, error_message);
}
free(error_message);
free(from);