shithub: 9ferno

Download patch

ref: cbf559e618ec9c384302bf6004ad6101e860109a
parent: 09d5252589c63389716b539efd10d75367bc6c83
author: 9ferno <gophone2015@gmail.com>
date: Mon Mar 14 12:40:44 EDT 2022

more diagnostics

--- a/appl/wm/toolbar.b	Mon Mar 14 01:52:09 2022
+++ b/appl/wm/toolbar.b	Mon Mar 14 12:40:44 2022
@@ -157,8 +157,10 @@
 		snarfIO = ref Sys->FileIO(chan of (big, int, int, Sys->Rread), chan of (big, array of byte, int, Sys->Rwrite));
 	sync := chan of string;
 	spawn consoleproc(ctxt, sync);
-	if ((err := <-sync) != nil)
+	if ((err := <-sync) != nil){
+sys->print("error: %s\n", err);
 		fatal(err);
+	}
 
 	setupfinished := chan of int;
 	donesetup := 0;
@@ -179,8 +181,8 @@
 		if (donesetup){
 			{
  				shctxt.run(ref Listnode(nil, s) :: nil, 0);
-			} exception {
-			"fail:*" =>	;
+			} exception e {
+			"fail:*" =>	sys->print("wm/toolbar: exec %s failed: %s\n", s, e);
 			}
 		}
 	detask := <-task =>