@@ -125,19 +125,19 @@ public function actionCreate(
125
125
$ db = getenv ("DATABASE_DSN_DB " );
126
126
}
127
127
if (empty ($ db )) {
128
- $ this ->stdout ('No database configured, aborting. ' );
128
+ $ this ->stderr ('No database configured, aborting. ' );
129
129
return ;
130
130
}
131
131
132
132
// check root user settings
133
133
$ root = $ root ?: getenv ("DB_ENV_MYSQL_ROOT_USER " );
134
134
if (empty ($ root )) {
135
- $ this ->stdout ('No root user configured, aborting. ' );
135
+ $ this ->stderr ('No root user configured, aborting. ' );
136
136
return ;
137
137
}
138
138
$ rootPassword = $ rootPassword ?: getenv ("DB_ENV_MYSQL_ROOT_PASSWORD " );
139
139
if (empty ($ rootPassword )) {
140
- $ this ->stdout ('No root password configured, aborting. ' );
140
+ $ this ->stderr ('No root password configured, aborting. ' );
141
141
return ;
142
142
}
143
143
@@ -146,7 +146,7 @@ public function actionCreate(
146
146
$ dsn = $ dsn ?: getenv ("DATABASE_DSN_BASE " );
147
147
148
148
if (empty ($ user ) || empty ($ pass ) || empty ($ dsn )) {
149
- $ this ->stdout ('Configuration failed, aborting. ' );
149
+ $ this ->stderr ('Configuration failed, aborting. ' );
150
150
return ;
151
151
}
152
152
@@ -166,7 +166,7 @@ function () use ($dsn, $root, $rootPassword) {
166
166
}
167
167
);
168
168
} catch (FailingTooHardException $ e ) {
169
- $ this ->stdout ("\n\nError: Unable to connect to database ' " .$ e ->getMessage ()."'' " );
169
+ $ this ->stderr ("\n\nError: Unable to connect to database ' " .$ e ->getMessage ()."'' " );
170
170
\Yii::$ app ->end (1 );
171
171
}
172
172
$ this ->stdout (' [OK] ' );
@@ -190,7 +190,7 @@ function () use ($dsn, $root, $rootPassword, $pdo, $user, $pass, $db) {
190
190
}
191
191
);
192
192
} catch (FailingTooHardException $ e ) {
193
- $ this ->stdout ("\n\nError: Unable to setup database ' " .$ e ->getMessage ()."'' " );
193
+ $ this ->stderr ("\n\nError: Unable to setup database ' " .$ e ->getMessage ()."'' " );
194
194
\Yii::$ app ->end (1 );
195
195
}
196
196
0 commit comments