e1_recorder: propagate errors to main, where we exit() in case of failing to open file
diff --git a/src/storage.c b/src/storage.c
index d18f8cd..0a926e4 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -83,7 +83,9 @@
 	h->capture_mode = mode;
 	h->flags = 0;
 
-	storage_reopen_if_needed();
+	rc = storage_reopen_if_needed();
+	if (rc < 0)
+		return rc;
 
 	rc = writev(g_out_fd, iov, ARRAY_SIZE(iov));
 	if (rc < 0)