Mercurial > hg > th-libs
comparison th_util.c @ 644:562de49f8b4b
Add some missing error messages.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 24 Jan 2020 15:10:19 +0200 |
parents | f2aa3c809247 |
children | f3649df3d9a7 |
comparison
equal
deleted
inserted
replaced
643:a2bf1ea05b05 | 644:562de49f8b4b |
---|---|
199 return strerror(error - TH_SYSTEM_ERRORS); | 199 return strerror(error - TH_SYSTEM_ERRORS); |
200 | 200 |
201 switch (error) | 201 switch (error) |
202 { | 202 { |
203 case THERR_OK: return "No error"; | 203 case THERR_OK: return "No error"; |
204 | |
205 case THERR_PROGRESS: return "Operation in progress"; | |
206 | |
207 case THERR_INTERNAL: return "Internal error"; | |
208 | |
204 case THERR_FOPEN: return "File open error"; | 209 case THERR_FOPEN: return "File open error"; |
205 case THERR_FREAD: return "Read error"; | 210 case THERR_FREAD: return "Read error"; |
206 case THERR_FWRITE: return "Write error"; | 211 case THERR_FWRITE: return "Write error"; |
207 case THERR_FSEEK: return "Seek error"; | 212 case THERR_FSEEK: return "Seek error"; |
208 case THERR_NOT_FOUND: return "Resource not found"; | 213 case THERR_NOT_FOUND: return "Resource not found"; |
218 case THERR_OUT_OF_DATA: return "Out of data"; | 223 case THERR_OUT_OF_DATA: return "Out of data"; |
219 case THERR_EXTRA_DATA: return "Extra data"; | 224 case THERR_EXTRA_DATA: return "Extra data"; |
220 case THERR_BOUNDS: return "Bounds check failed"; | 225 case THERR_BOUNDS: return "Bounds check failed"; |
221 | 226 |
222 case THERR_TIMED_OUT: return "Operation timed out"; | 227 case THERR_TIMED_OUT: return "Operation timed out"; |
228 case THERR_BUSY: return "Resource busy"; | |
229 case THERR_IO_ERROR: return "Input/ouput error"; | |
223 | 230 |
224 case THERR_AUTH_FAILED: return "Authentication failed"; | 231 case THERR_AUTH_FAILED: return "Authentication failed"; |
225 | 232 |
226 default: return "Unknown error"; | 233 default: return "Unknown error"; |
227 } | 234 } |