aboutsummaryrefslogtreecommitdiff
path: root/lib/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/error.c')
-rw-r--r--lib/error.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/lib/error.c b/lib/error.c
index bad0620..4a37144 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -6,25 +6,26 @@
#define UNKNOWN NULL, NULL
TIO_LOCAL_DATA(char const *) errors[] = {
- "tio_error_none", "everything is okay",
- "tio_error_unknown", "an unknown error has occurred",
- "tio_error_alloc", "a memory allocation has failed",
- "tio_error_op", "unsupported operation",
- "tio_error_arg", "an argument was invalid",
- "tio_error_iter", "no more elements in an iterator",
+ "tio_error_none", "everything is okay",
+ "tio_error_unknown", "an unknown error has occurred",
+ "tio_error_alloc", "a memory allocation has failed",
+ "tio_error_op", "unsupported operation",
+ "tio_error_arg", "an argument was invalid",
+ "tio_error_iter", "no more elements in an iterator",
+ "tio_error_notfound", "an element wasn't found",
+ "tio_error_access", "not enough privileges to operate",
UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN,
UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN,
- UNKNOWN, UNKNOWN,
-
- "tio_error_stream", "invalid/erroneous stream",
- "tio_error_read", "a read operation has failed",
- "tio_error_write", "a write operation has failed",
- "tio_error_seek", "a seek operation has failed",
- "tio_error_end", "an end of stream has been reached",
- "tio_error_timeout", "a timeout has occurred",
- "tio_error_scsi", "an SCSI operation has failed",
- "tio_error_usb", "a USB operation has failed"
+
+ "tio_error_stream", "invalid/erroneous stream",
+ "tio_error_read", "a read operation has failed",
+ "tio_error_write", "a write operation has failed",
+ "tio_error_seek", "a seek operation has failed",
+ "tio_error_end", "an end of stream has been reached",
+ "tio_error_timeout", "a timeout has occurred",
+ "tio_error_scsi", "an SCSI operation has failed",
+ "tio_error_usb", "a USB operation has failed"
};
/* ---