We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f4f866 commit 45230f8Copy full SHA for 45230f8
1 file changed
src/utils.rs
@@ -92,5 +92,6 @@ pub fn start() -> Vec<Vec<Information>> {
92
"[]".to_string()
93
}
94
};
95
- serde_json::from_str(messages.as_str()).unwrap()
+ // 如果发生错误,就不读取
96
+ serde_json::from_str(messages.as_str()).unwrap_or(vec![])
97
0 commit comments