Fix: Undefined 'errors' variable