comparison src/dmlib.c @ 1273:132706e3b94b

Improve error handling and reporting slightly.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 03 Oct 2016 09:06:01 +0300
parents f29fa5b6b748
children 4f82e7cda289
comparison
equal deleted inserted replaced
1272:acae5f8ebc67 1273:132706e3b94b
185 case DMERR_EXTRA_DATA: return "Extra data"; 185 case DMERR_EXTRA_DATA: return "Extra data";
186 case DMERR_BOUNDS: return "Bounds check failed"; 186 case DMERR_BOUNDS: return "Bounds check failed";
187 187
188 case DMERR_DATA_ERROR: return "Data decoding/encoding/parsing error"; 188 case DMERR_DATA_ERROR: return "Data decoding/encoding/parsing error";
189 189
190 case DMERR_VERSION: return "Unsupported file format version";
191
190 case DMERR_NOTPACK: return "File is not a PACK"; 192 case DMERR_NOTPACK: return "File is not a PACK";
191 case DMERR_VERSION: return "Unsupported PACK version"; 193 case DMERR_PACK_VERSION: return "Unsupported PACK version";
192 case DMERR_INVALID: return "Invalid data, corrupted file"; 194 case DMERR_INVALID: return "Invalid data, corrupted file";
193 case DMERR_COMPRESSION: return "Error in compression"; 195 case DMERR_COMPRESSION: return "Error in compression";
194 196
195 default: return "Unknown error"; 197 default: return "Unknown error";
196 } 198 }