feat: minor improvements to LSP error handling
This commit is contained in:
parent
ef57339258
commit
c79c684969
2 changed files with 6 additions and 7 deletions
|
@ -318,7 +318,7 @@ fn receive_safe(self: *Self, from: tp.pid_ref, m: tp.message) tp.result {
|
|||
return;
|
||||
|
||||
var msg: []const u8 = undefined;
|
||||
if (try m.match(.{ "exit", tp.extract(&msg), tp.more })) {
|
||||
if (try m.match(.{ "exit", tp.extract(&msg) }) or try m.match(.{ "exit", tp.extract(&msg), tp.more })) {
|
||||
self.logger.err_msg("tui", msg);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue