Skip to content

Commit 65af689

Browse files
ksaurmicrosoft-github-policy-service[bot]mohsha-msft
authored
Add info in error message for mkdir on Log/Plan (#1883)
* Microsoft mandatory file * Add info in error message for mkdir on Log/Plan Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> Co-authored-by: Mohit Sharma <65536214+mohsha-msft@users.noreply.github.com>
1 parent bea738d commit 65af689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func main() {
5454
azcopyLogPathFolder = azcopyAppPathFolder
5555
}
5656
if err := os.Mkdir(azcopyLogPathFolder, os.ModeDir|os.ModePerm); err != nil && !os.IsExist(err) {
57-
common.PanicIfErr(err)
57+
log.Fatalf("Problem making .azcopy directory. Try setting AZCOPY_LOG_LOCATION env variable. %v", err)
5858
}
5959

6060
// the user can optionally put the plan files somewhere else
@@ -66,7 +66,7 @@ func main() {
6666
azcopyJobPlanFolder = path.Join(azcopyAppPathFolder, "plans")
6767
}
6868
if err := os.Mkdir(azcopyJobPlanFolder, os.ModeDir|os.ModePerm); err != nil && !os.IsExist(err) {
69-
common.PanicIfErr(err)
69+
log.Fatalf("Problem making .azcopy directory. Try setting AZCOPY_PLAN_FILE_LOCATION env variable. %v", err)
7070
}
7171

7272
jobID := common.NewJobID()

0 commit comments

Comments
 (0)