fix missing error reporting on startup

This commit is contained in:
Massaki Archambault 2021-03-03 00:25:49 -05:00
parent 3c7ad94844
commit 50ff5208fb
1 changed files with 5 additions and 1 deletions

View File

@ -172,11 +172,15 @@ func main() {
gitlabClient, _ := gitlab.NewClient(config.Gitlab.URL, config.Gitlab.Token, *gitlabClientParam)
// Start the filesystem
fs.Start(
err = fs.Start(
mountpoint,
config.Gitlab.GroupIDs,
config.Gitlab.UserIDs,
&fs.FSParam{Git: gitClient, Gitlab: gitlabClient},
*debug,
)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}