Remove even more Fatal* calls
This commit is contained in:
parent
1990eba055
commit
7de923d40a
3 changed files with 15 additions and 9 deletions
|
|
@ -154,7 +154,7 @@ func getContext(opts graph.Options) (appengine.Context, error) {
|
|||
req := opts["HTTPRequest"].(*http.Request)
|
||||
if req == nil {
|
||||
err := errors.New("HTTP Request needed")
|
||||
glog.Fatalln(err)
|
||||
glog.Errorln(err)
|
||||
return nil, err
|
||||
}
|
||||
return appengine.NewContext(req), nil
|
||||
|
|
|
|||
|
|
@ -84,8 +84,9 @@ func (p *PrimaryKey) Int() int64 {
|
|||
case sequential:
|
||||
return p.sequentialID
|
||||
case unique:
|
||||
glog.Fatal("UUID cannot be cast to an int64")
|
||||
return -1
|
||||
msg := "UUID cannot be cast to an int64"
|
||||
glog.Errorln(msg)
|
||||
panic(msg)
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue