better sse break

This commit is contained in:
Ruben Fiszel
2026-01-26 11:21:03 +00:00
parent 86f4648c3c
commit 51170f3cf3
+4 -1
View File
@@ -75,7 +75,10 @@ pub trait SSEParser {
"Breaking SSE stream after {} consecutive parsing errors",
consecutive_errors
);
break;
return Err(Error::InternalErr(format!(
"SSE stream terminated after {} consecutive parsing errors",
consecutive_errors
)));
}
}
}