Refined error message for ajax_get_threads method