From 2d3ce32314896fad07faecb7696bf9febf7611f9 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Sun, 1 Mar 2020 23:21:35 -0700 Subject: [PATCH] switch to representation error for partial strings (#267) --- src/prolog/machine/system_calls.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/prolog/machine/system_calls.rs b/src/prolog/machine/system_calls.rs index 7a94db03..4fc92ed8 100644 --- a/src/prolog/machine/system_calls.rs +++ b/src/prolog/machine/system_calls.rs @@ -944,9 +944,8 @@ impl MachineState { } None => { let stub = MachineError::functor_stub(clause_name!("partial_string"), 3); - let err = MachineError::type_error( - ValidType::Character, - Addr::Con(Constant::Char('\u{0}')), + let err = MachineError::representation_error( + RepFlag::Character, ); return Err(self.error_form(err, stub)); -- 2.54.0