[Tilesathome] catching ERRORLEVEL in Windows batch
Dirk-Lüder Kreie
osm-list at deelkar.net
Wed Sep 3 10:46:33 BST 2008
Carsten Moeller schrieb:
> Hi,
>
> sometimes I don't run t at h in a loop, instead
> I use a batch files that does the work, calling
> tilesGen and tilesGen upload.
> But if tilesGen fails in some way I do not
> always get an exit code != 0
>
> Can we change this behaviour?
>
> e.g.
>
> ...
> Revision 10440.
> downloaded 10 bytes
> [#0 0% ] tilesGen.pl has changed. Please restart new version.
>
> Results in "EROORLEVEL=0" = success!
Strictly speaking that is not a failure, because the program did what it
should correctly. From the Standpoint of someone expecting a result (as
in a generated tileset, or completed upload), it is a failure.
So I think the client should automatically do what it was originally
called to do at that point instead of exiting.
--
Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0952°N 8.8652°E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20080903/f442d3c0/attachment.pgp>
More information about the Tilesathome
mailing list