From adff045894037a761b18433b57eaa0c21f152c02 Mon Sep 17 00:00:00 2001 From: hourglasshoro Date: Mon, 1 Feb 2021 14:58:35 +0900 Subject: [PATCH] update: Mounting error --- cmd/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index be4cc07..95b6c29 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -46,6 +46,9 @@ You can open a dashboard in your browser and see a graph of dependencies represe defaultFileSystem := afero.NewOsFs() ctx := file.NewContext(defaultFileSystem) currentDir, err := os.Getwd() + if err != nil { + return errors.Wrap(err, "cannot get current dir") + } graphDir := graph_path.Solve(source, currentDir) graph, err := graph.BuildGraph(*ctx, graphDir) if err != nil {