<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Paco,<br><br>I agree, but I found no simple way to change mkgmap.<br>I assume that you consider a non empty stderr file as<br>an error, so maybe we can check whether anything was<br>written to stderr, but sometimes we use this file also for<br>important hints like this:<br>"WARNING: input files have different code pages"<br><br>BTW: Also splitter doesn't make sure that it ends<br>with a non-zero return code in case of errors, but<br>it tries to do so.<br><br>Gerd<br><br><div>> Date: Sat, 11 Jan 2014 00:22:54 +0100<br>> From: paco.tyson@free.fr<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: [mkgmap-dev] Mkgmap always returns exit code 0 even when it fails<br>> <br>> Hi,<br>> <br>> I'm building a map generation tool with Ant. Problem is that if mkgmap<br>> encounters an error, the exit code is 0, no matter what. As this is the "OK"<br>> exit code, Ant carries on to the rest of the workflow.<br>> On the contrary, splitter does return a non zero code when it fails.<br>> <br>> Please make mkgmap return a non zero exit code for errors.<br>> <br>> <br>> Thanks,<br>> Paco<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>