Skip to content

Commit 91ac7f6

Browse files
Dont fail on multiple target directories
Signed-off-by: Chris Cummer <[email protected]>
1 parent c2fff9c commit 91ac7f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/target_directory.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package src
22

33
import (
44
"errors"
5+
"log"
56
"os"
67
"path/filepath"
78

@@ -20,7 +21,8 @@ const (
2021
func BuildTargetDirectory() {
2122
tDir, err := GetTargetDir(GlobalConfig, "", true)
2223
if err != nil {
23-
Defeat(err)
24+
log.Printf("BuildTargetDirectory got error: %v", err)
25+
return
2426
}
2527

2628
if _, err := os.Stat(tDir); os.IsNotExist(err) {

0 commit comments

Comments
 (0)