Skip to content

Commit 830cebb

Browse files
committed
More log messages for reading input arg
1 parent 20549fc commit 830cebb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/root.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,20 @@ func handleArgs(input string, version string, serverDir string, host string) (*m
178178

179179
archivePath := ""
180180
if web.IsValidHttpUrl(input) {
181-
log.Println("Downloading mrpack file from", input)
181+
log.Printf("Downloading mrpack file from: %s", input)
182182
file, err := web.DefaultClient.DownloadFile(input, serverDir, "")
183183
if err != nil {
184184
log.Fatalln(err.Error())
185185
}
186186
archivePath = file
187187

188188
} else if files.IsFile(input) {
189+
log.Printf("Installing from mrpack file: %s", input)
189190
archivePath = input
190191

191192
} else {
192-
// input is project id or slug
193+
log.Printf("Trying to resolve project id or slug: %s", input)
194+
193195
versions, err := modrinth.Client.GetProjectVersions(input, nil)
194196
if err != nil {
195197
log.Fatalln(err)

0 commit comments

Comments
 (0)