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
|
@ -4,6 +4,8 @@ import (
|
|||
"encoding/json"
|
||||
"os"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
|
||||
"github.com/docker/docker-registry/storagedriver/filesystem"
|
||||
"github.com/docker/docker-registry/storagedriver/ipc"
|
||||
)
|
||||
|
@ -17,5 +19,7 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
ipc.StorageDriverServer(filesystem.FromParameters(parameters))
|
||||
if err := ipc.StorageDriverServer(filesystem.FromParameters(parameters)); err != nil {
|
||||
logrus.Fatalln(err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue