fixing error code recognition

Signed-off-by: Ondrej Rafaj <ondrej.rafaj@fuerteint.com>