Skip to content
Snippets Groups Projects
Commit 33ad232a authored by Yifan Gu's avatar Yifan Gu
Browse files

sdjournal: Break the loop if error happens during Write().

parent 6dc8b843
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,9 @@ process:
return ErrExpired
default:
if c > 0 {
writer.Write(msg[:c])
if err = writer.Write(msg[:c]); err != nil {
break process
}
continue process
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment