Skip to content

Commit f147c77

Browse files
properly report errors that happen when trying to listen on the blob storage port
1 parent c2b250c commit f147c77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ func main() {
2828
check(InitBlob(blobPath))
2929

3030
log.Printf("Blob storage listening on port %d...", config.BlobStorage.Port)
31-
http.ListenAndServe(fmt.Sprintf(":%d", config.BlobStorage.Port), nil)
31+
err = http.ListenAndServe(fmt.Sprintf(":%d", config.BlobStorage.Port), nil)
32+
if err != nil {
33+
panic(err)
34+
}
3235
}

0 commit comments

Comments
 (0)