|
|||
|
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Wish list for software localization tool > Have SLMake generate proper ERRORLEVEL exit code
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius | ||
| Author | Post | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Frede Member
|
SLMake is great to automate the scan and builds etc. but it does not set ERRORLEVEL as it should. The only case when it returns a nonzero value is when the project does not exist. If the project exist it always return 0 (success). This is regardless if it cold not load the files in the project or failed to generate localized versions or whatever. This means that it's not possible to check the success with a build tool or batch file since errorlevel really does not tell you anything useful. Your only option is to check the output log file for errors and that file can be very big if you have a big project. An easy implementation would be to have it return 1 if there were any errors and 2 if there were only warnings or similar. That way you could be notified when something goes wrong and you can review the log for details. |
|||||||||
|
Jaakko.Salmenius Administrator
|
I checked the logic. SlMake return 0 if succesful and there are not error level item on the log. It returns 1 if there was an error (e.g. missing file) or there is at least one error level item on the log. Whart is the case where you have an error but SlMake does not return 1. Can you send me the log file, please support (at) sisulizer.fi Jaakko |
|||||||||
|
Jaakko.Salmenius Administrator
|
I found a bug in SlMake's error level handling. I fixed this in 1.6.25. This is how it works now: SlMake returns 0 if there are no error or warning items in the log. SlMake returns 1 if there is at least on error item in the log. SlMake returns 2 if there is at least on warning item in the log. Jaakko |
|||||||||
|
Frede Member
|
Great, I will test it asap when the new build is out. |
|||||||||
Sisulizer software localization tool - Three simple steps to localize