aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-22 17:50:50 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-22 17:50:50 +0000
commit78b2bd7d0d408a7f8d679a4e97a0260900211fb6 (patch)
tree8998ee64588bbb4ca961d4148cb99f500bf56447 /src
parent73762f705d161b00946c454cc28b02bfdc1bcd09 (diff)
downloadusdx-78b2bd7d0d408a7f8d679a4e97a0260900211fb6.tar.gz
usdx-78b2bd7d0d408a7f8d679a4e97a0260900211fb6.tar.xz
usdx-78b2bd7d0d408a7f8d679a4e97a0260900211fb6.zip
use Log.LogError instead of writeln
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2278 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src')
-rw-r--r--src/encoding/Auto.inc12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/encoding/Auto.inc b/src/encoding/Auto.inc
index 2f7faa0c..487e2e42 100644
--- a/src/encoding/Auto.inc
+++ b/src/encoding/Auto.inc
@@ -82,9 +82,7 @@ begin
if self.Regex = Nil then
begin
- {$IFDEF CONSOLE}
- writeln('ERROR: UTF8 Regex compilation failed: ', AnsiString(Error), ' at ', ErrorOffset);
- {$ENDIF}
+ Log.LogError ('UTF8 Regex compilation failed: ' + AnsiString(Error) + ' at ' + IntToStr(ErrorOffset), 'EncoderAuto.Create');
end
else
begin
@@ -93,17 +91,13 @@ begin
if Error <> Nil then
begin
- {$IFDEF CONSOLE}
- writeln('ERROR: UTF8 Regex study failed: ', AnsiString(Error));
- {$ENDIF}
+ Log.LogError ('UTF8 regex study failed: ' + AnsiString(Error), 'EncoderAuto.Create');
end;
end;
end
else
begin
- {$IFDEF CONSOLE}
- writeln('ERROR: pcre not loaded. utf-8 autodetection will not work.');
- {$ENDIF}
+ Log.LogError ('pcre not loaded. utf-8 autodetection will not work.', 'EncoderAuto.Create');
end;
end;