Skip to content

Commit

Permalink
developing
Browse files Browse the repository at this point in the history
  • Loading branch information
0c34 committed Oct 26, 2017
1 parent 5c0e514 commit ea6051a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
16 changes: 8 additions & 8 deletions config/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"user" : "gosec",
"password" : "gosec321",
"dbname" :"govwa",
"sqlhost" : "192.168.56.101",
"sqlport" : "3306",
"webserver" : "http://localhost",
"webport" : "8082",
"user": "gosec",
"password": "gosec321",
"dbname": "govwa",
"sqlhost": "192.168.56.101",
"sqlport": "3306",
"webserver": "http://localhost",
"webport": "8082",

"sessionkey:" : "G0Vw444"
"sessionkey:": "G0Vw444"
}
6 changes: 4 additions & 2 deletions util/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ func (this *Class)CapturePanic(h httprouter.Handle) httprouter.Handle {
if r != nil {
switch t := r.(type) {
case string:
err = errors.New(t)
err = errors.New(t)
log.Println("error string")
case error:
err = t
err = t
log.Println("error t")
default:
err = errors.New("Unknown error")
}
Expand Down

0 comments on commit ea6051a

Please sign in to comment.