beterraba

commit 8438a8c8973fdbd2681e945664d8fba62d8e3ac6

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

monitor,server: indicate monitor errors & note implementation lacking on prepare

 cmd/beterrabad/executor.ha | 3 ++-
 cmd/beterrabad/socket.ha | 4 ++--
 cmd/beterrabamon/main.ha | 1 +


diff --git a/cmd/beterrabad/executor.ha b/cmd/beterrabad/executor.ha
index af4d4c803b6b96e276e4ffea61e80c1748b0f813..848fcaa14b74685e8b18e854fff440b3626ec48f 100644
--- a/cmd/beterrabad/executor.ha
+++ b/cmd/beterrabad/executor.ha
@@ -138,7 +138,8 @@ 		match (cmd) {
 		case let cmddef: exec::command =>
 			exec::exec(&cmddef);
 		case exec::nocmd =>
-			fmt::printfln("Couldn't build cmd {}",
+			fmt::printfln("Couldn't fire up the executor
+				'beterrabamon' {}",
 				service.definition.cmd)!;
 		case exec::error =>
 			service.status = beterraba::status::CRASHED;




diff --git a/cmd/beterrabad/socket.ha b/cmd/beterrabad/socket.ha
index 901d40db855c783a132ee02b6cbd4e32c93c0160..7b1870e0887204c33e49445e8a0f4024210dabf3 100644
--- a/cmd/beterrabad/socket.ha
+++ b/cmd/beterrabad/socket.ha
@@ -57,7 +57,7 @@ 	let sockpath = path::string(&pathbuf);
 
 	const sock = match(unix::listen(sockpath, net::sockflags::NOCLOEXEC)) {
 		case let err: net::error =>
-			log::fatalf("Could not create socket", net::strerror(err));
+			log::fatalf("Could not create socket: ", net::strerror(err));
 		case let unixsock: net::socket =>
 			yield unixsock;
 	};
@@ -167,7 +167,7 @@ 	case io::error =>
 		disconnect_client(client);
 	};
 
-	let line = match (strings::try_fromutf8(bufline as []u8)) {
+	let line = match (strings::fromutf8(bufline as []u8)) {
 	case let s: str =>
 		yield s;
 	case utf8::invalid =>




diff --git a/cmd/beterrabamon/main.ha b/cmd/beterrabamon/main.ha
index e53fda4d20ecbce6b6887aea59f931cf4286e8a6..77bbd9405b0eb82e51e8bf8a16b3277b02da3472 100644
--- a/cmd/beterrabamon/main.ha
+++ b/cmd/beterrabamon/main.ha
@@ -73,6 +73,7 @@ //
 fn prepare() void = {
 	// TODO: Implement the above
 	//fs::mkdir
+	log::printfln("IMPLEMENT");
 };
 
 fn conn() net::socket = {