W3C home > Mailing lists > Public > xproc-dev@w3.org > January 2013

Calabash should return non-0 in case of error

From: Florent Georges <fgeorges@fgeorges.org>
Date: Tue, 29 Jan 2013 14:10:16 +0100
Message-ID: <CADyR_r2Af34SCayzVp1TznikWsnJiD5-73ZtxFUtszHXE1JjcQ@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
  Hi,

  Calabash always returns 0 to the operating system.  Could it return
a non-0 code in case or error?  It is very hard to integrate it in
other products, calling it as an external process, and to handle
errors.

  I think Main.main() should detect error cases and call System.exit(1).

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
Received on Tuesday, 29 January 2013 13:11:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 29 January 2013 13:11:04 GMT