refactor: unify error handling
This commit is contained in:
@@ -12,7 +12,7 @@ var defaultPathUploadFolder string = ""
|
||||
func gatherDefaultPaths() error {
|
||||
execPath, err := os.Executable()
|
||||
if err != nil {
|
||||
return fmt.Errorf("[Error] Could not determine binary path: %v", err)
|
||||
return fmt.Errorf("Could not determine binary path: %v", err)
|
||||
}
|
||||
|
||||
defaultPathDataFolder = filepath.Join(filepath.Dir(execPath), DefaultNameDataFolder)
|
||||
|
Reference in New Issue
Block a user