Add a translators comment

This commit is contained in:
Filipe Correa 2020-08-17 10:11:39 -03:00
parent 148387ecb9
commit a8bc07cf40
1 changed files with 1 additions and 0 deletions

View File

@ -925,6 +925,7 @@ class WC_AJAX {
$validation_error = apply_filters( 'woocommerce_ajax_add_order_item_validation', $validation_error, $product, $order, $qty );
if ( $validation_error->get_error_code() ) {
/* translators: %s: error message */
throw new Exception( sprintf( __( 'Error: %s', 'woocommerce' ), $validation_error->get_error_message() ) );
}
$item_id = $order->add_product( $product, $qty );