log parse errors
This commit is contained in:
1 parent
f132a08f7d
commit
586983291a
3 files changed
+19
-11
No files matched your search
@@ -81,13 +81,16 @@ impl DesktopController {
|
||||
impl ErrorHandler for DesktopErrorHandler {
|
||||
fn handle_error(&self, err: Error) {
|
||||
if let Some(conn) = &mut *self.latest_connection.lock().unwrap() {
|
||||
if let Error::RecompileRequiredError(reason) = err {
|
||||
conn.get_mut()
|
||||
.write_all(
|
||||
(serde_json::to_string(&reason).unwrap() + "\n")
|
||||
.as_bytes(),
|
||||
)
|
||||
.unwrap();
|
||||
match err {
|
||||
Error::RecompileRequiredError(reason) => {
|
||||
conn.get_mut()
|
||||
.write_all(
|
||||
(serde_json::to_string(&reason).unwrap() + "\n")
|
||||
.as_bytes(),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
Error::ParseError(err) => log::warn!("{}", err),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user