comparison src/dmres.c @ 1045:1f37239172ad

Improve error message.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Mar 2015 17:47:50 +0200
parents 1ec6ae223941
children 7e54b2d08ce7
comparison
equal deleted inserted replaced
1044:1ec6ae223941 1045:1f37239172ad
491 goto out; 491 goto out;
492 } 492 }
493 if (fread(handle->rawData, sizeof(Uint8), node->size, handle->lib->packFile->file) != node->size) 493 if (fread(handle->rawData, sizeof(Uint8), node->size, handle->lib->packFile->file) != node->size)
494 { 494 {
495 ret = dmError(DMERR_FREAD, 495 ret = dmError(DMERR_FREAD,
496 "Error reading node data.\n"); 496 "Error reading raw node data '%s', %d bytes.\n",
497 handle->filename, node->size);
497 goto out; 498 goto out;
498 } 499 }
499 } 500 }
500 501
501 out: 502 out: