Use the correct var name when logging an error

Signed-off-by: Suki <suki@missallsunday.com>