niti: adapt debugger to the new signature ot check_errors

Signed-off-by: Jean Privat <jean@pryen.org>