We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83ff1a7 + aaac352 commit c90ea80Copy full SHA for c90ea80
desktop/src-tauri/src/custom_protocol.rs
@@ -79,18 +79,26 @@ impl CustomProtocol {
79
);
80
};
81
}
82
- Err(err) => {
83
- if let Err(err) = app_state
84
- .ui_messages
85
- .send(UiMessage::OpenWorkspaceFailed(err))
86
- .await
87
- {
+ Err(err) => match err {
+ ParseError::UnsupportedHost(host) => {
88
error!(
89
- "Failed to broadcast invalid custom protocol message: {:?}, {}",
90
- err.0, err
+ "Attempted to open custom url with unsupported host: {}",
+ host
91
92
- };
93
- }
+ }
+ _ => {
+ if let Err(err) = app_state
+ .ui_messages
+ .send(UiMessage::OpenWorkspaceFailed(err))
+ .await
94
+ {
95
+ error!(
96
+ "Failed to broadcast invalid custom protocol message: {:?}, {}",
97
+ err.0, err
98
+ );
99
+ };
100
101
+ },
102
103
})
104
0 commit comments