campeon23 / split-fetcher

The code is a concurrent file downloader in Go that splits a file into multiple parts, downloads them in parallel, and assembles the final file, with support for Etag validation to ensure file integrity.
MIT License
1 stars 0 forks source link

Inefficient Use of Error Logging #83

Open campeon23 opened 1 year ago

campeon23 commented 1 year ago
  • Package Name: assembler
  • Function Name: PrepareAssemblyEnviroment
  • Line Code: f.Log.Fatalw("Error: ", err.Error())
  • Description: Directly logging fatal errors within utility functions can halt the program unexpectedly. Consider returning errors and allowing the caller to decide how to handle them.

Severity: Low