Skip to content

Commit 7b16a32

Browse files
wip
1 parent f65b6ad commit 7b16a32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmd/localstack/codearchive.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func DownloadCodeArchive(url string, targetPath string) error {
4141
// create tmp directory
4242
// empty string will make use of the default tmp directory
4343
tmpDir, err := os.MkdirTemp("", "localstack-code-archive")
44+
defer os.RemoveAll(tmpDir)
4445
if err != nil {
4546
return err
4647
}

cmd/localstack/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109

110110
// download code archive if env variable is set
111111
if err := DownloadCodeArchives(lsOpts.CodeArchives); err != nil {
112-
log.Fatal("Failed to download code archives")
112+
log.Fatal("Failed to download code archives: " + err.Error())
113113
}
114114

115115
// parse CLI args

0 commit comments

Comments
 (0)