mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Merge pull request #1445 from rtfeldman/better-file-error-msg
better error message when trying to open file with editor
This commit is contained in:
commit
ea35ed5755
2 changed files with 3 additions and 1 deletions
|
@ -330,6 +330,8 @@ fn run_event_loop(file_path_opt: Option<&Path>) -> Result<(), Box<dyn Error>> {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
begin_render_pass(&mut encoder, &frame.view, &ed_theme);
|
||||||
|
|
||||||
queue_no_file_text(
|
queue_no_file_text(
|
||||||
&size,
|
&size,
|
||||||
NOTHING_OPENED,
|
NOTHING_OPENED,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
pub const NOTHING_OPENED: &str = "Execute `cargo run edit <filename>` to open a file.";
|
pub const NOTHING_OPENED: &str = "Opening files is not yet supported. Execute `cargo run edit` from the root folder of the repo to try the editor.";
|
||||||
pub const START_TIP: &str =
|
pub const START_TIP: &str =
|
||||||
"Start by typing '[', '{', '\"' or a number.\nInput chars that would create parse errors will be ignored.";
|
"Start by typing '[', '{', '\"' or a number.\nInput chars that would create parse errors will be ignored.";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue