code: func (ssa *SQLStorageAuthority) SetOrderError(ctx context.Context, order *corepb.Order) error {
  	tx, err := ssa.dbMap.Begin()
  	if err != nil {
  		return err
  	}
  	txWithCtx := tx.WithContext(ctx)
  
  	om, err := orderToModel(order)
  	if err != nil {
  		return Rollback(tx, err)
  	}
  
  	result, err := txWithCtx.Exec(`
  		UPDATE orders
  		SET error = ?
  		WHERE id = ?`,
  		om.Error,
  		om.ID)
  	if err != nil {
  		err = berrors.InternalServerError("error updating order error field")
  		return Rollback(tx, err)
  	}
  
  	n, err := result.RowsAffected()
  	if err != nil || n == 0 {
  		err = berrors.InternalServerError("no order updated with new error field")
  		return Rollback(tx, err)
  	}
  
  	return tx.Commit()
  }
docs: // SetOrderError updates a provided Order's error field.