summary refs log tree commit diff
path: root/cli/stat.c
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-09-17 08:19:31 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-09-17 08:19:31 +0000
commit311a05f6138cdbbbb2208ca79e0736f0fec030a8 (patch)
tree8a9453f19e6108fa26e9148876f3f7d8aa326bda /cli/stat.c
parentb169d038fe2d3cc01979dd8ed6333504bbcd02f9 (diff)
downloadbtpd-311a05f6138cdbbbb2208ca79e0736f0fec030a8.tar.gz
btpd-311a05f6138cdbbbb2208ca79e0736f0fec030a8.zip
btcli add now starts the torrent if not told otherwise. Soem cleanup and
improved error output.

Diffstat (limited to 'cli/stat.c')
-rw-r--r--cli/stat.c4
1 files changed, 2 insertions, 2 deletions
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)