From: Andrew Deason Date: Wed, 10 Nov 2010 21:21:07 +0000 (-0600) Subject: afscp: Always show fetch/store errors X-Git-Tag: upstream/1.8.0_pre1^2~4531 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8078c4dcf2dd5a922225f0e37babf1b357b5e72d;p=packages%2Fo%2Fopenafs.git afscp: Always show fetch/store errors When we get an error from a fetch or store operation, show what the error was, instead of just saying "some network error occured". Change-Id: I4b1baca0e1b11bd048014ef2b4f4789c7813f0e7 Reviewed-on: http://gerrit.openafs.org/3290 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/tests/afscp.c b/src/tests/afscp.c index 0cbeba4e6..fc5194b07 100644 --- a/src/tests/afscp.c +++ b/src/tests/afscp.c @@ -525,7 +525,7 @@ main(int argc, char **argv) } else { fetchcode = rx_EndCall(scall, fetchcode); } - if (fetchcode && printcallerrs) + if (fetchcode) printf("Error returned from fetch: %s\n", afs_error_message(fetchcode)); if (dlcl) { @@ -534,7 +534,7 @@ main(int argc, char **argv) } else if (!unlock) { storecode = rx_EndCall(dcall, storecode); } - if (storecode && printcallerrs) + if (storecode) printf("Error returned from store: %s\n", afs_error_message(storecode)); Finish: gettimeofday(&finish, &tz);