mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
updated error messages
This commit is contained in:
parent
4b4ad47312
commit
5f6d259e5d
3 changed files with 28 additions and 24 deletions
|
@ -3841,8 +3841,7 @@ struct HeaderOutput<'a> {
|
|||
fn ensure_roc_file<'a>(filename: &PathBuf, src_bytes: &[u8]) -> Result<(), LoadingProblem<'a>> {
|
||||
match filename.extension() {
|
||||
Some(ext) => {
|
||||
let roc_ext = std::ffi::OsStr::new("roc");
|
||||
if roc_ext != ext {
|
||||
if ext != ROC_FILE_EXTENSION {
|
||||
return Err(LoadingProblem::FileProblem {
|
||||
filename: filename.clone(),
|
||||
error: io::ErrorKind::Unsupported,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue