From 311a05f6138cdbbbb2208ca79e0736f0fec030a8 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Sun, 17 Sep 2006 08:19:31 +0000 Subject: btcli add now starts the torrent if not told otherwise. Soem cleanup and improved error output. --- cli/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/stat.c') diff --git a/cli/stat.c b/cli/stat.c index 0ed75bf..1d1b781 100644 --- a/cli/stat.c +++ b/cli/stat.c @@ -162,8 +162,8 @@ again: stat_cb, &cba); else err = btpd_tget(ipc, tps, ntps, stkeys, nstkeys, stat_cb, &cba); - if (handle_ipc_res(err, "stat") != IPC_OK) - exit(1); + if (err != IPC_OK) + errx(1, ipc_strerror(err)); if (names) printf("-----\n"); if (individual) -- cgit 1.4.1