summaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 02:51:56 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 02:56:19 (EDT)
commit9033d4b6b9b85ab3e502b376daf66ae566c026b6 (patch)
tree5933fa9a313caff0ec5a0aa38e4087cba777c6d8 /TODO
parente153a4a392e2f6e616b2c94b77eb683eff9e644a (diff)
libopkbuild: Abort on invalid function arguments
Shift arguments and abort instead of returning 125. Incorrect numbers of function arguments suggest application/library incompatibilities or serious errors by the application developer. Either way, the application developer should be made immediately aware of this (and not allowed to simply not check return values), and continuing to run and handle any further API calls may be unsafe.
Diffstat (limited to 'TODO')
-rw-r--r--TODO4
1 files changed, 1 insertions, 3 deletions
diff --git a/TODO b/TODO
index 3bf6738..4f8cfa3 100644
--- a/TODO
+++ b/TODO
@@ -40,9 +40,7 @@ Tasks
* Drop mksysconf.
* In executables, print error (using `printf`) and exit if
`ob_set_text_domain()` fails.
- * Make `set -e` and drop `return 125` from library functions. `shift`
- arguments, and exit (with `kill`) if `shift` returns non-zero (POSIX only
- says the shell "may exit").
+ * Make `set -e`.
* Make `ob_error()` non-fatal and use in libopkbuild in places where functions
return on error.