Gulp logging improved

This commit is contained in:
Juan Ferrer 2019-02-12 00:39:39 +01:00
parent 18afce9b1b
commit 4d0495fce7
1 changed files with 4 additions and 1 deletions

View File

@ -440,7 +440,10 @@ function dockerWait() {
conn.on('error', () => {});
conn.connect(err => {
conn.destroy();
if (!err) return resolve();
if (!err) {
log('MySQL process ready.');
return resolve();
}
if (elapsedTime >= maxInterval)
reject(new Error(`MySQL not initialized whithin ${elapsedTime} secs`));