]> Repositorios git - scryer-prolog.git/commitdiff
Fix use_module import errors
authorAdrián Arroyo Calle <[email protected]>
Sun, 28 Nov 2021 12:20:09 +0000 (13:20 +0100)
committerAdrián Arroyo Calle <[email protected]>
Sun, 28 Nov 2021 12:20:09 +0000 (13:20 +0100)
src/loader.pl

index 8ab46bf054acb51b6d593f2c8463761953e4956b..771aaafb4898b5488dd0403f5d14d5af97238c07 100644 (file)
@@ -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) )
             )