Print error messagge 'unable to open database' to stderr

Fixes #610
This commit is contained in:
Andrey Smirnov
2017-08-09 00:01:51 +03:00
parent a626e4693b
commit e05768737f
3 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ func (context *AptlyContext) _database() (database.Storage, error) {
delay = time.Second
}
context._progress().Printf("Unable to open database, sleeping %s, attempts left %d...\n", delay, tries)
context._progress().PrintfStdErr("Unable to open database, sleeping %s, attempts left %d...\n", delay, tries)
time.Sleep(delay)
}
}