Tweaked error message

This commit is contained in:
2024-09-30 15:29:29 +10:00
parent 8d6bdb88b4
commit 7b8ff8f873
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ void* Toy_partBucket(Toy_Bucket** bucketHandle, size_t space) {
//if you try to allocate too much space
if ((*bucketHandle)->capacity < space) {
fprintf(stderr, TOY_CC_ERROR "[internal] ERROR: Failed to partition bucket memory, not enough capacity\n" TOY_CC_RESET);
fprintf(stderr, TOY_CC_ERROR "[internal] ERROR: Failed to partition bucket memory, not enough capacity: needed %d, only %d available\n" TOY_CC_RESET, (int)space, (int)((*bucketHandle)->capacity));
exit(1);
}