convert error when writing