StorageDrivers should exit non-zero on error (closes #803)
This commit is contained in:
parent
f497bceffa
commit
54c0290cda
3 changed files with 14 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/docker/docker-registry/storagedriver/inmemory"
|
||||
"github.com/docker/docker-registry/storagedriver/ipc"
|
||||
)
|
||||
|
@ -8,5 +9,7 @@ import (
|
|||
// An out-of-process inmemory driver, intended to be run by ipc.NewDriverClient
|
||||
// This exists primarily for example and testing purposes
|
||||
func main() {
|
||||
ipc.StorageDriverServer(inmemory.New())
|
||||
if err := ipc.StorageDriverServer(inmemory.New()); err != nil {
|
||||
logrus.Fatalln(err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue