Merge: Revamp app.nit print_error and print_warning
authorJean Privat <jean@pryen.org>
Wed, 13 May 2015 15:20:32 +0000 (11:20 -0400)
committerJean Privat <jean@pryen.org>
Wed, 13 May 2015 15:20:32 +0000 (11:20 -0400)
commit0dfb7f2f0a7d4f970ef86f9e2c078014ba3692df
tree7ccd3eb07d88b7b768e4661627dd203e02a5a355
parentc76ec25868ce7fd9be812c44b090a070caeb37d9
parent800ba2188740ba67a6a79115296f9550fe0ddd7e
Merge: Revamp app.nit print_error and print_warning

Should we move `print_error` to the standard library? It could be useful and specialized for many usages. Android redirects to logcat, PNaCl could redirect to the JavaScript console, and nitcorn could tee to console and a file.

All the current errors printed on `sys.stderr` are lost on Android. Redirecting the stream is not ideal as each call to `write` would use a new line on the Android log.

Pull-Request: #1329
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>