mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-17 01:11:38 +03:00
fix: do not treat certain failures in app images bootstrap as fatal (#966)
This commit is contained in:
committed by
GitHub
parent
fde4e9b38a
commit
cc34aca2a0
@@ -42,9 +42,15 @@ func initApplicationImages() error {
|
||||
name := f.Name()
|
||||
destFilePath := path.Join(dirPath, name)
|
||||
|
||||
// Skip directories
|
||||
if f.IsDir() {
|
||||
continue
|
||||
}
|
||||
|
||||
h, err := utils.CreateSha256FileHash(destFilePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to get hash for file '%s': %w", name, err)
|
||||
slog.Warn("Failed to get hash for file", slog.String("name", name), slog.Any("error", err))
|
||||
continue
|
||||
}
|
||||
|
||||
// Check if the file is a legacy one - if so, delete it
|
||||
|
||||
Reference in New Issue
Block a user