Skip to content

Commit de002f7

Browse files
committed
Merge branch 'mrrobot47-fix/add-error-msg'
2 parents 18ff99d + 3b8ec2d commit de002f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Site_Command.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ public function create( $args, $assoc_args ) {
127127
EE::error( 'Invalid arguments' );
128128
}
129129

130+
if ( $this->db::site_in_db( $this->site_name ) ) {
131+
EE::error( "Site $this->site_name already exists. If you want to re-create it please delete the older one using:\n`ee site delete $this->site_name`" );
132+
}
133+
130134
$this->proxy_type = 'ee_traefik';
131135
$this->cache_type = ! empty( $assoc_args['wpredis'] ) ? 'wpredis' : 'none';
132136
$this->le = ! empty( $assoc_args['letsencrypt'] ) ? 'le' : false;

0 commit comments

Comments
 (0)