Open GoogleCodeExporter opened 8 years ago
Here's a start - patch to send "Collected errors:" reports to stderr.
Otherwise it's hard to deal with non-fatal errors (should they be warnings?) in
scripts.
denix
Original comment by den...@gmail.com
on 2 Aug 2011 at 12:06
Attachments:
The patch looks good, errors should definitely be printed to stderr not stdout.
I'll try to get it applied for version 0.3.
Also, I disagree with Graham here. Error codes are better because they're
simpler to handle in code that wants to know what error occurred (use "=="
rather than "strcmp"). It also means a function opkg_strerror(int err) can
eventually give the error in a local language, knowing that no sane code is
going to run strcmp on it.
Maybe we need an error structure that can say what package or file caused the
error code, something like:
struct opkg_error {
int err;
char * cause;
};
Original comment by paul.betafive
on 18 Sep 2013 at 1:47
Drop back to v0.4.
Original comment by paul.betafive
on 1 Feb 2014 at 2:22
Original issue reported on code.google.com by
graham.g...@gmail.com
on 21 Sep 2010 at 7:33