diff --git a/examples/utility.c b/examples/utility.c index fecf464f64ae5742fa6a24cd0086f8e7dc07fb8b..321a3ab691a09ad6adca26d3ea50a873ebd26208 100644 --- a/examples/utility.c +++ b/examples/utility.c @@ -2,10 +2,10 @@ #include #include -void check(const char* phase, int err) { - if (err) { +void check(const char* phase, int code) { + if (code < 0) { printf("ERR %d in phase `%s`. Err was `%s`\nEXITING!\n", - err, phase, connector_error_peek()); + code, phase, connector_error_peek()); exit(1); } }