mirror of https://github.com/lapce/lapce.git
Print problematic path
This commit is contained in:
parent
1baaa04158
commit
34d6d29fc2
|
@ -430,7 +430,10 @@ pub fn get_uri(&self, buffer: &Buffer) -> Url {
|
|||
state.opened_documents.contains_key(&buffer.id)
|
||||
};
|
||||
if !exits {
|
||||
let document_uri = Url::from_file_path(&buffer.path).unwrap();
|
||||
let document_uri =
|
||||
Url::from_file_path(&buffer.path).unwrap_or_else(|_| {
|
||||
panic!("Failed to create URL from path {:?}", buffer.path)
|
||||
});
|
||||
self.send_did_open(
|
||||
&buffer.id,
|
||||
document_uri,
|
||||
|
|
Loading…
Reference in New Issue