Plan 9 from Bell Labs’s /usr/web/sources/contrib/mospak/abaco-html4/abaco-error-surface-prefix.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


--- sys/src/cmd/abaco/page.c
+++ sys/src/cmd/abaco/page.c
@@ -273,7 +273,7 @@
 	addrefresh(p, "opening: %S...", p->url->src.r);
 	fd = urlopen(p->url);
 	if(fd < 0){
-		addrefresh(p, "%S: %r", p->url->src.r);
+		addrefresh(p, "error: %S: %r", p->url->src.r);
     Err:
 		p->loading = FALSE;
 		return;
@@ -293,7 +293,7 @@
 		ctype = TextPlain;
 	else{
 		close(fd);
-		addrefresh(p, "%S: unsupported mime type: '%S'", p->url->act.r, p->url->ctype.r);
+		addrefresh(p, "error: %S: unsupported mime type: '%S'", p->url->act.r, p->url->ctype.r);
 		goto Err;
 	}
 	addrefresh(p, "loading: %S...", p->url->src.r);

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.