diff options
| author | Petter Rasmussen | 2016-01-17 23:12:26 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2016-01-17 23:12:26 +0100 | 
| commit | d4d1b00c9609a4d493f79bdd74bae5dc60d37ed7 (patch) | |
| tree | f54e38bf8654ce3deab9691acbfe3df6a5d438da /util.go | |
| parent | c88aba0d9b14777be0915541503ca0e1a7936f67 (diff) | |
| download | gdrive-d4d1b00c9609a4d493f79bdd74bae5dc60d37ed7.tar.bz2 | |
Return error
Diffstat (limited to 'util.go')
| -rw-r--r-- | util.go | 7 | 
1 files changed, 7 insertions, 0 deletions
| @@ -27,3 +27,10 @@ func ExitF(format string, a ...interface{}) {  	fmt.Println("")  	os.Exit(1)  } + +func checkErr(err error) { +    if err != nil { +        fmt.Println(err) +        os.Exit(1) +    } +} | 
