Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.

Commit 91f401b

Browse files
committed
Change reference from $app to $db object for getting error message
1 parent be89bf1 commit 91f401b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stuff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ function create_php_app( $php_version, $features, $spare = false ) {
615615
$db = provisioner()->create_database( $app->id, $dbname, $dbusername, $dbpassword );
616616

617617
if ( is_wp_error( $db ) ) {
618-
throw new \Exception( 'Error creating database for app: ' . $app->get_error_message() );
618+
throw new \Exception( 'Error creating database for app: ' . $db->get_error_message() );
619619
}
620620
if ( $spare ) {
621621
log_new_unused_site( $app, $password, $features['shortlife'], is_user_logged_in() ? wp_get_current_user() : '' );

0 commit comments

Comments
 (0)