Give thread id with error msg