File useful_error_message.patch of Package singularity-ce
From b30b95c3215d756709d42566e7c0975637282c25 Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Mon, 25 Jul 2022 15:51:06 +0200
Subject: [PATCH] useful error message
---
internal/pkg/util/starter/starter.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal/pkg/util/starter/starter.go b/internal/pkg/util/starter/starter.go
index 73edcf9..97770f6 100644
--- a/internal/pkg/util/starter/starter.go
+++ b/internal/pkg/util/starter/starter.go
@@ -104,7 +104,7 @@ func Exec(name string, config *config.Common, ops ...CommandOp) error {
c.env = append(c.env, "GOGC=off")
err := unix.Exec(c.path, []string{name}, c.env)
- return fmt.Errorf("while executing %s: %s", c.path, err)
+ return fmt.Errorf("while executing %s: %s\nPlease read /usr/share/doc/packages/singularity-ce/README.SUSE to get help\n", c.path, err)
}
// Run executes the starter binary and returns once starter
--
2.37.1