Emit error event in sqlite adapter