Skip to content

Commit

Permalink
add init raven function
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyaoi committed Oct 14, 2018
1 parent c0e13f7 commit b07cc32
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Expand Up @@ -6,5 +6,4 @@ build
dist
.env
.idea
.DS_Store
*.go
.DS_Store
1 change: 0 additions & 1 deletion cli/main.go
Expand Up @@ -8,7 +8,6 @@ import (
)

func main() {
initRaven()
validateConfig()
// sessionToken := getCache("session-token")
var currentUser User
Expand Down
10 changes: 10 additions & 0 deletions cli/raven.go
@@ -0,0 +1,10 @@
package main

import (
"log"
"github.com/getsentry/raven-go"
)

func initRaven() {
log.Fatal("Please init it in environment variables")
}

0 comments on commit b07cc32

Please sign in to comment.