app/controllers/spree/api/retailops/catalog_controller.rb
# Add diagnostics for the current product/variant.  Using this instead
# of throwing an exception will cause the errors in RetailOps to be
# associated to the exact SKU (instead of the entire batch), and
# flagged as "user" errors rather than "system" errors.
Add diagnostics for the current product/variant.  Using this instead
of throwing an exception will cause the errors in RetailOps to be
associated to the exact SKU (instead of the entire batch), and
flagged as "user" errors rather than "system" errors.
Add diagnostics for the current product / variant . Using this instead of throwing an exception will cause the errors in RetailOps to be associated to the exact SKU ( instead of the entire batch ) and flagged as " user " errors rather than " system " errors .
def add_error(msg)
            @failed[@current_corr_id] = true
            @diag << { "corr_id" => @current_corr_id, "message" => msg, "failed" => true }
            Rails.logger.error msg
          end
def add_error ( msg ) @failed [ @current_corr_id ] = true @diag << { "corr_id" => @current_corr_id , "message" => msg , "failed" => true } Rails . logger . error msg end
Add diagnostics for the current product/variant.
Add diagnostics for the current product / variant .
msg
<not_specific>