From d81653563c0d42dfd87f653d635b6e802a6c48fc Mon Sep 17 00:00:00 2001 From: nessie Date: Thu, 9 Jan 2025 22:28:49 +0000 Subject: [PATCH] err --- api/pkg/pubsub/nats.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/pkg/pubsub/nats.go b/api/pkg/pubsub/nats.go index 41f796d2..9eae9666 100644 --- a/api/pkg/pubsub/nats.go +++ b/api/pkg/pubsub/nats.go @@ -29,7 +29,11 @@ type Nats struct { } func NewInMemoryNats() (*Nats, error) { - tmpDir, _ := os.MkdirTemp(os.TempDir(), "helix-nats") + tmpDir, err := os.MkdirTemp(os.TempDir(), "helix-nats") + if err != nil { + return nil, fmt.Errorf("failed to create temp dir: %w", err) + } + opts := &server.Options{ Host: "127.0.0.1", Port: server.RANDOM_PORT,