From 5d1e512e23f6506f270868f1509397674c2e4d5b Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Fri, 18 Dec 2009 16:12:33 +0000 Subject: change zero note error to warning with better description git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2050 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/base/USong.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/base/USong.pas') diff --git a/src/base/USong.pas b/src/base/USong.pas index fccf2757..705206c4 100644 --- a/src/base/USong.pas +++ b/src/base/USong.pas @@ -510,7 +510,9 @@ begin //Check for ZeroNote if Param2 = 0 then - Log.LogError('Found zero-length note at "'+Param0+' '+IntToStr(Param1)+' '+IntToStr(Param2)+' '+IntToStr(Param3)+ParamLyric+'" -> Note ignored!') + Log.LogWarn(Format('"%s" in line %d: %s', + [FileNamePath.ToNative, FileLineNo, 'found note with length zero -> note ignored']), 'TSong.LoadSong') + //Log.LogError('Found zero-length note at "'+Param0+' '+IntToStr(Param1)+' '+IntToStr(Param2)+' '+IntToStr(Param3)+ParamLyric+'" -> Note ignored!') else begin // add notes -- cgit v1.2.3