]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afscp: Always show fetch/store errors
authorAndrew Deason <adeason@sinenomine.net>
Wed, 10 Nov 2010 21:21:07 +0000 (15:21 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 22 Mar 2013 09:52:16 +0000 (02:52 -0700)
When we get an error from a fetch or store operation, show what the
error was, instead of just saying "some network error occured".

Reviewed-on: http://gerrit.openafs.org/3290
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 8078c4dcf2dd5a922225f0e37babf1b357b5e72d)

Change-Id: Icfdce08149e16749097bd6be326312dec6292d34
Reviewed-on: http://gerrit.openafs.org/9415
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/tests/afscp.c

index 0cbeba4e677463bd6427be7a0283f7e3885b4469..fc5194b07c99bd294b6bbabe90fed6ce1c2b4726 100644 (file)
@@ -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);