From: Adrián Arroyo Calle Date: Sun, 28 Nov 2021 12:20:09 +0000 (+0100) Subject: Fix use_module import errors X-Git-Tag: v0.9.0~15^2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=7eb0669de5e4a570cec92ae7fe62b6185f618d51;p=scryer-prolog.git Fix use_module import errors --- diff --git a/src/loader.pl b/src/loader.pl index 8ab46bf0..771aaafb 100644 --- a/src/loader.pl +++ b/src/loader.pl @@ -503,7 +503,7 @@ open_file(Path, Stream) :- ( atom_concat(_, '.pl', Path) -> open(Path, read, Stream) ; catch(open(Path, read, Stream), - error(existence_error(source_sink, Path), _), + error(existence_error(source_sink, _), _), ( atom_concat(Path, '.pl', ExtendedPath), open(ExtendedPath, read, Stream) ) )