core: stats, more detail error message