include library(error) in toplevel.pl (#1226)

This commit is contained in:
Mark Thom
2022-01-17 21:53:52 -07:00
parent 3ebf8d5db9
commit 97b9d488d4

View File

@@ -2,6 +2,7 @@
copy_term/3]). copy_term/3]).
:- use_module(library(charsio)). :- use_module(library(charsio)).
:- use_module(library(error)).
:- use_module(library(files)). :- use_module(library(files)).
:- use_module(library(iso_ext)). :- use_module(library(iso_ext)).
:- use_module(library(lambda)). :- use_module(library(lambda)).
@@ -153,7 +154,6 @@ instruction_match(Term, VarList) :-
( var(Term) -> ( var(Term) ->
throw(error(instantiation_error, repl/0)) throw(error(instantiation_error, repl/0))
; Term = [Item] -> ; Term = [Item] ->
!,
( atom(Item) -> ( atom(Item) ->
( Item == user -> ( Item == user ->
catch(load(user_input), E, print_exception_with_check(E)) catch(load(user_input), E, print_exception_with_check(E))