mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-04-01 17:34:23 +02:00
keep both original file and fallback errors
This commit is contained in:
parent
9a1354ae62
commit
732044f795
@ -187,8 +187,8 @@ func (p *plugin) update(withBackup bool) error {
|
|||||||
if _, err := os.Stat(newExec); err != nil {
|
if _, err := os.Stat(newExec); err != nil {
|
||||||
// try again with an .exe extension
|
// try again with an .exe extension
|
||||||
newExec = newExec + ".exe"
|
newExec = newExec + ".exe"
|
||||||
if _, err := os.Stat(newExec); err != nil {
|
if _, fallbackErr := os.Stat(newExec); fallbackErr != nil {
|
||||||
return fmt.Errorf("The executable in the extracted path is missing or it is inaccessible: %w", err)
|
return fmt.Errorf("The executable in the extracted path is missing or it is inaccessible: %w, %w", err, fallbackErr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user