Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: replace os.Exit with panic for clearer error handling

Johnnyc45a59549a04
diff --git a/store/test/main_test.go b/store/test/main_test.go
index ad6bb80ca..5c4e19274 100644
--- a/store/test/main_test.go
+++ b/store/test/main_test.go
@@ -38,7 +38,7 @@ func runAllDrivers() {
// strictly speaking we should probably fail, but let's be robust.
// Actually, if build fails, tests relying on it will fail or try to rebuild.
// Let's exit to be clear.
- os.Exit(1)
+ panic(fmt.Sprintf("failed to build docker image: %v", err))
}
var failed []string