lib/error.c


Log

Author Commit Date CI Message
Stefan Sperling 73e7eb7d 2020-12-15T23:45:34 add got_error_fmt() got_error_fmt() could eventually replace got_error_path() which has already been used to construct errors with strings that are not actually paths... ok millert@
Stefan Sperling 4cc6a5a5 2020-12-15T22:42:20 add got_error_from_errno_fmt() for more flexibility in error messages suggested by and ok millert
Stefan Sperling 16aeacf7 2020-11-26T12:54:19 use size_t for loop indices to avoid signedness warnings; from emaste@freebsd
Stefan Sperling cc483380 2019-09-01T13:08:13 fix NULL deref in got_error_from_errno via got_error_uuid (found by jasper)
Stefan Sperling 7d45c7f1 2019-05-15T07:31:58 error.c: use <limits.h> instead of <sys/param.h>
Stefan Sperling df056ada 2019-05-15T07:27:06 introduce got_error_path()
Stefan Sperling 638f9024 2019-05-13T12:40:57 rename got_error_prefix_errno() to got_error_from_errno()
joshua stein 2af4a041 2019-05-11T16:21:20 got_error_set_errno: take a char arg to pass to got_error_prefix_errno $> got rm a got: : No such file or directory becomes $> got rm a got: /path/to/a: No such file or directory
joshua stein 230a42bd 2019-05-11T13:04:38 got_error_from_errno -> got_error_prefix_errno also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)
joshua stein 48b8b0eb 2019-05-11T10:40:57 error: introduce got_error_prefix_errno for better errno messages
joshua stein 10689f3a 2019-05-11T10:30:34 error: fix definition of got_error_from_errno
Stefan Sperling 09589288 2019-03-10T15:45:07 add got_error_uuid()
Stefan Sperling 2aa0475c 2019-02-03T17:00:40 add got_error_not_ref()
Stefan Sperling 8fa9fd14 2018-11-11T15:14:58 remove unnecessary cast
Stefan Sperling 91a3d81f 2018-11-11T13:41:46 introduce got errors with custom messages; add one for ERR_NO_OBJ
Stefan Sperling 1a76625f 2018-10-22T21:36:39 make 'tog log' use background thread and introduce global mutex
Stefan Sperling b4691ea5 2018-04-02T11:11:43 simplify got_error_from_errno()
Stefan Sperling 8fd17454 2018-03-09T23:43:59 don't forget to set error message in got_error_from_errno()
Stefan Sperling 8251fdbc 2018-01-12T23:00:06 introduce got_ferror() and use it
Stefan Sperling 72bcf0f9 2018-01-12T21:22:05 bump copyright
Stefan Sperling 6c6d6589 2018-01-12T21:21:09 use strerror_r()
Stefan Sperling f334529e 2018-01-12T21:17:22 add a conversion function from errno to got_error and use it
Stefan Sperling 2b4402a2 2017-11-05T13:48:22 only define nitems() if it is not already defined
Stefan Sperling 7b19e0f1 2017-11-05T13:35:01 add copyright
Stefan Sperling 4027f31a 2017-11-04T19:41:54 initial import; current implementation only parses the .git/HEAD ref