diff --git a/tests/runtests.pl b/tests/runtests.pl
index d2132c325ca30c306d7d292a613da06d4366ada4..2c9a4bfc74afefda0f0d59f291183dc411d48d97 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -517,7 +517,7 @@ sub singletest {
         }
         else {
             if(!$short) {
-                print "curl returned $res\n";
+                print "curl returned $res, ".(0+$errorcode)." was expected\n";
             }
             print " error FAILED\n";
             return 1;