beterraba

commit 95cf49653003c371bbb045ef60b2e8324a3305c9

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

type: add void option to strstatus

 beterraba/types.ha | 4 +++-


diff --git a/beterraba/types.ha b/beterraba/types.ha
index df870627ea60f958fa8afd30611fa6ce615ddf53..54303155413e6b2e7bd289c5d76c1b526576b67f 100644
--- a/beterraba/types.ha
+++ b/beterraba/types.ha
@@ -31,7 +31,7 @@ 	process: exec::process
 };
 
 // Maps a [[service]] status into a friendly message
-export fn strstatus(s: status) const str = {
+export fn strstatus(s: status) const (str | void) = {
 	switch (s) {
 	case status::STARTED =>
 		return "Started";
@@ -41,5 +41,7 @@ 	case status::STOPPED =>
 		return "Stopped";
 	case =>
 		return "Unknown value";
+	case =>
+		void;
 	};
 };