From ab18cdbf35e50ea4ff515f409198bdb74cb6da16 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Tue, 7 Mar 2023 13:27:41 +0100 Subject: [PATCH] fixes --- http.spl | 4 ++-- src/std_fns.rs | 2 +- std.spl | 2 +- test.spl | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/http.spl b/http.spl index eefe218..3aa14f9 100644 --- a/http.spl +++ b/http.spl @@ -1,5 +1,5 @@ -"stream.spl" import -"net.spl" import +"#stream.spl" import +"#net.spl" import "http" net:register diff --git a/src/std_fns.rs b/src/std_fns.rs index 6f682bf..8835ad9 100644 --- a/src/std_fns.rs +++ b/src/std_fns.rs @@ -633,7 +633,7 @@ pub fn import(stack: &mut Stack) -> OError { } if stack.include_file( &(*fs::canonicalize(s.clone()) - .map_err(|x| stack.error(ErrorKind::IO(x.to_string())))? + .map_err(|x| stack.error(ErrorKind::IO(x.to_string() + " (opening " + &s + ")")))? .as_os_str() .to_string_lossy()) .to_owned(), diff --git a/std.spl b/std.spl index c58bf04..8608da0 100644 --- a/std.spl +++ b/std.spl @@ -111,7 +111,7 @@ construct _array-ext { } } include _array-ext in array -"iter.spl" import +"#iter.spl" import construct List { array diff --git a/test.spl b/test.spl index 440deec..ba3a20f 100644 --- a/test.spl +++ b/test.spl @@ -1,6 +1,6 @@ -"stream.spl" import -"http.spl" import +"#stream.spl" import +"#http.spl" import func main { int | with args ; def thing