diff --git a/plugins/woocommerce/changelog/fix-update-wp-env-error-message b/plugins/woocommerce/changelog/fix-update-wp-env-error-message new file mode 100644 index 00000000000..c1dbb8c74d4 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-update-wp-env-error-message @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix wrong file name in error message in update-wp-env.php. diff --git a/plugins/woocommerce/tests/e2e-pw/bin/update-wp-env.php b/plugins/woocommerce/tests/e2e-pw/bin/update-wp-env.php index 07e5be7c0db..dcb87a7b56c 100644 --- a/plugins/woocommerce/tests/e2e-pw/bin/update-wp-env.php +++ b/plugins/woocommerce/tests/e2e-pw/bin/update-wp-env.php @@ -14,7 +14,7 @@ if ( ! class_exists( UPDATE_WP_JSON::class ) ) { if ( file_exists( $this->wp_env_path ) ) { $this->wp_json = json_decode( file_get_contents( $this->wp_env_path ), true ); } else { - throw new Exception( ".wp_env.json doesn't exist!" ); + throw new Exception( ".wp-env.json doesn't exist!" ); } $env = getenv();