fix missing error reporting on startup
This commit is contained in:
parent
3c7ad94844
commit
50ff5208fb
6
main.go
6
main.go
|
@ -172,11 +172,15 @@ func main() {
|
||||||
gitlabClient, _ := gitlab.NewClient(config.Gitlab.URL, config.Gitlab.Token, *gitlabClientParam)
|
gitlabClient, _ := gitlab.NewClient(config.Gitlab.URL, config.Gitlab.Token, *gitlabClientParam)
|
||||||
|
|
||||||
// Start the filesystem
|
// Start the filesystem
|
||||||
fs.Start(
|
err = fs.Start(
|
||||||
mountpoint,
|
mountpoint,
|
||||||
config.Gitlab.GroupIDs,
|
config.Gitlab.GroupIDs,
|
||||||
config.Gitlab.UserIDs,
|
config.Gitlab.UserIDs,
|
||||||
&fs.FSParam{Git: gitClient, Gitlab: gitlabClient},
|
&fs.FSParam{Git: gitClient, Gitlab: gitlabClient},
|
||||||
*debug,
|
*debug,
|
||||||
)
|
)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue