moved error handler to assembler package