stdscan: Use nasm_error helpers