# HG changeset patch # User Matti Hamalainen # Date 1424724688 -7200 # Node ID 03bda6477ad4700630daf44ec412ab76089a2eee # Parent bc6c338295e556ec01d8e70198c4ae75c0d742b8 Add new error code DMERR_DATA_ERROR. diff -r bc6c338295e5 -r 03bda6477ad4 src/dmlib.c --- a/src/dmlib.c Mon Feb 23 22:42:13 2015 +0200 +++ b/src/dmlib.c Mon Feb 23 22:51:28 2015 +0200 @@ -180,6 +180,8 @@ case DMERR_EXTRA_DATA: return "Extra data"; case DMERR_BOUNDS: return "Bounds check failed"; + case DMERR_DATA_ERROR: return "Data decoding/encoding/parsing error"; + case DMERR_NOTPACK: return "File is not a PACK"; case DMERR_VERSION: return "Unsupported PACK version"; case DMERR_INVALID: return "Invalid data, corrupted file"; diff -r bc6c338295e5 -r 03bda6477ad4 src/dmlib.h --- a/src/dmlib.h Mon Feb 23 22:42:13 2015 +0200 +++ b/src/dmlib.h Mon Feb 23 22:51:28 2015 +0200 @@ -55,6 +55,8 @@ DMERR_OUT_OF_DATA, DMERR_EXTRA_DATA, DMERR_BOUNDS, + + DMERR_DATA_ERROR, // Data decoding/encoding/parsing error // PACK-file subsystem DMERR_NOTPACK,