From a095f6a4ee1a69595bd14f96c2f241b5b0d4db48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Thu, 25 May 2017 08:19:19 +0200 Subject: [PATCH] ecl_thread_internal_error: provide hint what may go wrong --- src/c/error.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/c/error.d b/src/c/error.d index ca5170954..49432bea2 100644 --- a/src/c/error.d +++ b/src/c/error.d @@ -71,6 +71,9 @@ ecl_thread_internal_error(const char *s) fprintf(stderr, " [%d: %s]\n", saved_errno, strerror(saved_errno)); } + fprintf(stderr, + "\nDid you forget to call `ecl_import_current_thread'?\n" + "Exitting thread.\n"); fflush(stderr); #ifdef ECL_WINDOWS_THREADS ExitThread(0);