Explorar o código

Mark syntax errors within log with '[syntax]'

Serj Kalichev %!s(int64=3) %!d(string=hai) anos
pai
achega
910aef233d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      clish/shell/shell_tinyrl.c

+ 1 - 1
clish/shell/shell_tinyrl.c

@@ -325,8 +325,8 @@ static bool_t clish_shell_tinyrl_key_enter(tinyrl_t *this, int key)
 		if (clish_shell__get_log(shell) &&
 			clish_shell_check_hook(context, CLISH_SYM_TYPE_LOG)) {
 			char *s = NULL;
-			lub_string_cat(&s, "Syntax error: ");
 			lub_string_cat(&s, line);
+			lub_string_cat(&s, " [syntax]");
 			clish_shell_exec_log(context, s, 2);
 			lub_string_free(s);
 		}