Print error messagge 'unable to open database' to stderr

Fixes #610
This commit is contained in:
Andrey Smirnov committed 2017-08-09 00:01:51 +03:00
1 parent a626e4693b
commit e05768737f
3 files changed
+16 -1

No files matched your search

+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)
}
}