diff options
author | Brad Hubbard <bhubbard@redhat.com> | 2015-08-19 18:56:06 +1000 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2015-09-01 00:01:04 -0700 |
commit | 4b5aec8da9be69da077e1fcc7e852d224517ecc0 (patch) | |
tree | 522c537f0f1879175f0698377290c33e9add7542 /tests | |
parent | 4c6d1c0dc7e5f51c7f3d477fb274517d57289276 (diff) |
glusterd: Return better error messages for probe and detach failures
We handle some specific errors and return good error messages for those, but for
the default case where the error code is not recognised we just report "unknown
errno". This patch attempts to at least return the output of strerror to provide
more informative errors.
BUG: 1257149
Change-Id: I0027e74e41adac4ab0c0a929c6fff56878bf39c8
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-on: http://review.gluster.org/12021
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/bugs/glusterfs/bug-879490.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/glusterfs/bug-879490.t b/tests/bugs/glusterfs/bug-879490.t index 7cec6713654..c254b4f59eb 100755 --- a/tests/bugs/glusterfs/bug-879490.t +++ b/tests/bugs/glusterfs/bug-879490.t @@ -25,7 +25,7 @@ function peer_probe() $CLI peer probe a.b.c.d --xml | xmllint --format - | grep "<opErrstr>" } -EXPECT " <opErrstr>Probe returned with unknown errno 107</opErrstr>" peer_probe +EXPECT " <opErrstr>Probe returned with Transport endpoint is not connected</opErrstr>" peer_probe ## Finish up TEST $CLI volume stop $V0; |