From f4341e65f92a328332d56604bf7e567514f08bfa Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Thu, 27 Nov 2008 01:42:21 -0200 Subject: [PATCH] Let frontend handle error in example program instead of handling it --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 6491ee8..a47a352 100644 --- a/src/main.c +++ b/src/main.c @@ -40,8 +40,8 @@ main (int argc, char **argv) atom_frontend_set (ctx, cgi_frontend ()); if ((error = atom_error_get (ctx)) != NULL) { - g_message ("%s\n", atom_error_message (error)); - exit (1); + atom_handle_error (ctx); + exit (0); } atom_backend_enumerate_entries (ctx, NULL, NULL, NULL); atom_serve_request (ctx); -- 2.20.1