summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-13 22:09:37 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-15 18:09:40 +0100
commit943486f573ea5395d8b38735dbe019d2a3dfc5dd (patch)
tree7b0b69d9877c65fbbebc28bb6e85302d9438b014 /lib
parent6f4d85d2150c287432f7696659f22eeca0a0e1b2 (diff)
Add a "sequence error" to libsquashfs error codes
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/common/perror.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common/perror.c b/lib/common/perror.c
index a0a86aa..c7dab08 100644
--- a/lib/common/perror.c
+++ b/lib/common/perror.c
@@ -61,6 +61,9 @@ void sqfs_perror(const char *file, const char *action, int error_code)
case SQFS_ERROR_ARG_INVALID:
errstr = "invalid argument";
break;
+ case SQFS_ERROR_SEQUENCE:
+ errstr = "illegal oder of operations";
+ break;
default:
errstr = "libsquashfs returned an unknown error code";
break;