errors: Fix a wrong variable name

Signed-off-by: Ondřej Kupka <ondra.cap@gmail.com>