Skip to content

Commit 1163b99

Browse files
committed
Support for unicode error message for the ERROR_HANDLER.as_string_representation: STRING_32
and as well for debug_output, this avoid unecessary unicode string truncation.
1 parent ca6ccc7 commit 1163b99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

library/utility/general/error/src/error.e

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ feature -- String representation
5454

5555
feature -- Status report
5656

57-
debug_output: STRING
57+
debug_output: STRING_32
5858
do
59-
Result := string_representation.as_string_8
59+
Result := string_representation
6060
end
6161

6262
feature -- Change
@@ -80,7 +80,7 @@ invariant
8080
name_attached: name /= Void
8181

8282
note
83-
copyright: "2011-2012, Eiffel Software and others"
83+
copyright: "2011-2014, Jocelyn Fiat, Eiffel Software and others"
8484
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
8585
source: "[
8686
Eiffel Software

library/utility/general/error/src/error_handler.e

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ feature -- Access
260260
has_error_implies_result_attached: has_error implies Result /= Void
261261
end
262262

263-
as_string_representation: STRING
263+
as_string_representation: STRING_32
264264
-- String representation of all error(s).
265265
require
266266
has_error
@@ -269,7 +269,7 @@ feature -- Access
269269
Result := e.string_representation
270270
else
271271
check has_error: False end
272-
Result := "Error occured"
272+
Result := {STRING_32} "Error occured"
273273
end
274274
end
275275

0 commit comments

Comments
 (0)