cli: print error causes in all error paths
[babeltrace.git] / src / param-parse / param-parse.c
index c2e0ec59349ce5106838dc28d646ed21656d72fc..566c61efea56761def7039812a811d41ae0747ef 100644 (file)
@@ -96,10 +96,10 @@ void ini_append_error_expecting(struct ini_parsing_state *state,
        }
 
        for (i = 0; i < pos; ++i) {
-               g_string_append_printf(state->ini_error, " ");
+               g_string_append_c(state->ini_error, ' ');
        }
 
-       g_string_append_printf(state->ini_error, "^\n\n");
+       g_string_append_c(state->ini_error, '^');
 }
 
 static
@@ -551,7 +551,7 @@ int ini_handle_state(struct ini_parsing_state *state)
                state->expecting = INI_EXPECT_MAP_KEY;
                goto success;
        default:
-               abort();
+               bt_common_abort();
        }
 
 error:
This page took 0.032207 seconds and 4 git commands to generate.