Add missing errorcheck (fixes #58)