~sircmpwn/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH himitsu] hiq: better error msg for himitsud not running

Details
Message ID
<20220514025842.20569-1-sebastian@sebsite.pw>
DKIM signature
pass
Download raw message
Patch: +4 -1
Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 cmd/hiq/main.ha | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/cmd/hiq/main.ha b/cmd/hiq/main.ha
index 04a107d..1e1b435 100644
--- a/cmd/hiq/main.ha
+++ b/cmd/hiq/main.ha
@@ -1,5 +1,6 @@
use bufio;
use dirs;
use errors;
use fmt;
use getopt;
use himitsu::query;
@@ -85,8 +86,10 @@ export fn main() void = {
	let conn = match (unix::connect(sockpath)) {
	case let s: io::file =>
		yield s;
	case errors::noentry =>
		fmt::fatal("error: himitsud isn't running");
	case let e: net::error =>
		fmt::fatal(net::strerror(e));
		fmt::fatal("error:", net::strerror(e));
	};
	defer io::close(conn)!;

-- 
2.35.1
Details
Message ID
<CJZMG8ICATO1.32KG42V956CBD@taiga>
In-Reply-To
<20220514025842.20569-1-sebastian@sebsite.pw> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks!

To git@git.sr.ht:~sircmpwn/himitsu
   91b9f28..cc9801f  master -> master
Reply to thread Export thread (mbox)