use double_quotes in write_error (#1886)
This commit is contained in:
@@ -24,10 +24,14 @@ write_error(Error) :-
|
|||||||
; write(' ') % if '$first_answer' isn't defined yet or true,
|
; write(' ') % if '$first_answer' isn't defined yet or true,
|
||||||
% print indentation.
|
% print indentation.
|
||||||
),
|
),
|
||||||
|
( current_prolog_flag(double_quotes, chars) ->
|
||||||
|
DQ = true
|
||||||
|
; DQ = false
|
||||||
|
),
|
||||||
( nonvar(Error),
|
( nonvar(Error),
|
||||||
functor(Error, error, 2) ->
|
functor(Error, error, 2) ->
|
||||||
writeq(Error)
|
write_term(Error, [ignore_ops(false), numbervars(true), quoted(true), double_quotes(DQ)])
|
||||||
; writeq(throw(Error))
|
; write_term(throw(Error), [ignore_ops(false), numbervars(true), quoted(true), double_quotes(DQ)])
|
||||||
),
|
),
|
||||||
write('.').
|
write('.').
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user