Added validation message in build php process.

This commit is contained in:
2023-02-17 13:57:36 +02:00
parent 80464a61d7
commit c899f8c229
+4
View File
@@ -59,6 +59,10 @@ class Component_Builder {
private string $dist_path = '';
function __construct( $args = [] ) {
if ( empty( $args['backPath'] ) || empty( $args['projectPath'] ) || empty( $args['blockName'] ) || empty( $args['platform'] ) ) {
die( 'Error: Missing arguments. Make sure all parameter passed.' );
}
$this->module_path = $args['backPath'];
$this->project_path = $args['projectPath'];
$this->component_name = $args['blockName'];