-- var not available in err message