ecl_thread_internal_error: provide hint what may go wrong

This commit is contained in:
Daniel Kochmański 2017-05-25 08:19:19 +02:00
parent 3c4e1541e5
commit a095f6a4ee

View file

@ -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);