Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #231 from devuri/fix-landlord-message
Browse files Browse the repository at this point in the history
fix: better message for missing landlord data
  • Loading branch information
devuri authored Feb 11, 2024
2 parents 8404e6e + 73447a1 commit 155c277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/Http/Tenancy.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private function setup_multi_tenant(): void
$_dotenv->required( 'LANDLORD_DB_PASSWORD' )->notEmpty();
$_dotenv->required( 'LANDLORD_DB_PREFIX' )->notEmpty();
} catch ( Exception $e ) {
wp_terminate( 'Required for multi-tenant: ' . $e->getMessage(), 403 );
wp_terminate( 'Landlord info is required for multi-tenant', 403 );
}

$tenant = new DB( 'tenant', env( 'LANDLORD_DB_HOST' ), env( 'LANDLORD_DB_NAME' ), env( 'LANDLORD_DB_USER' ), env( 'LANDLORD_DB_PASSWORD' ), env( 'LANDLORD_DB_PREFIX' ) );
Expand Down

0 comments on commit 155c277

Please sign in to comment.