1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-03-17 21:18:19 +02:00

Better error handling on failed upgrade if file corrupt

This commit is contained in:
Ralph Slooten 2022-08-16 08:16:03 +12:00
parent a6693481fa
commit 53e199b20f

View File

@ -178,7 +178,7 @@ func GithubUpdate(repo, appName, currentVersion string) (string, error) {
// get the running binary
oldExec, err := os.Executable()
if err != nil {
panic(err)
return "", err
}
if err = replaceFile(oldExec, newExec); err != nil {