Commit Diff


commit - dceca3b69d6c83e3667e8035d591a192e33cf0f6
commit + cef60084e65c78ec736d3d6d1d9c383fd424d693
blob - 35cb572c74295e60a62d9b95d863803c49d53c31
blob + 00caf4ac7cee133adf77cbe70c4160b08cca5a70
--- regress/puny-test.c
+++ regress/puny-test.c
@@ -50,12 +50,14 @@ main(int argc, char **argv)
 	struct suite *i;
 	int failed;
 	char buf[64];		/* name len */
+	char *parse_err;
 
 	failed = 0;
 	for (i = t; i->src != NULL; ++i) {
 		memset(buf, 0, sizeof(buf));
-		if (!puny_decode(i->src, buf, sizeof(buf))) {
-                        printf("decode: failure with %s\n", i->src);
+		if (!puny_decode(i->src, buf, sizeof(buf), &parse_err)) {
+                        printf("decode: failure with %s: %s\n",
+			    i->src, parse_err);
                         failed = 1;
 			continue;
 		}