summaryrefslogtreecommitdiffstats
path: root/core/os/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/os/thread.cpp')
-rw-r--r--core/os/thread.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/os/thread.cpp b/core/os/thread.cpp
index c067ad1a6a..03e2c5409d 100644
--- a/core/os/thread.cpp
+++ b/core/os/thread.cpp
@@ -101,7 +101,9 @@ Thread::Thread() {
Thread::~Thread() {
if (id != UNASSIGNED_ID) {
#ifdef DEBUG_ENABLED
- WARN_PRINT("A Thread object has been destroyed without wait_to_finish() having been called on it. Please do so to ensure correct cleanup of the thread.");
+ WARN_PRINT(
+ "A Thread object is being destroyed without its completion having been realized.\n"
+ "Please call wait_to_finish() on it to ensure correct cleanup.");
#endif
thread.detach();
}