From b48588ca8fec7ae81bfebed9be682d7bff4f0d68 Mon Sep 17 00:00:00 2001 From: walther chen Date: Sun, 23 Mar 2025 19:34:50 +0700 Subject: [PATCH] improve error message for uninitialized temp allocator pool on new threads --- lib/std/core/mem_allocator.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/core/mem_allocator.c3 b/lib/std/core/mem_allocator.c3 index 72ab37e26..73e566031 100644 --- a/lib/std/core/mem_allocator.c3 +++ b/lib/std/core/mem_allocator.c3 @@ -433,7 +433,7 @@ fn Allocator create_temp_allocator_on_demand() @private if (!auto_create_temp) { auto_create_temp = true; - abort("Only the main thread pool is implicitly created. Use '@pool_init()' to enable the temp allocator on other threads."); + abort("Use '@pool_init()' to enable the temp allocator on a new thread. A pool is implicitly created only on the main thread."); } return create_temp_allocator(base_allocator(), temp_allocator_size()); }