Skip to content

Commit

Permalink
Make clear that backup is incompatible with error
Browse files Browse the repository at this point in the history
Adding a "backup incompatible" to the error
message for manifest validation. This should
make the error message more clear and also
help to determine the correct view for the
iOS app :)
  • Loading branch information
AndreasSko committed Sep 1, 2023
1 parent 36c2963 commit 19baad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Database.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (db *Database) ImportJWLBackup(filename string) error {

// Make sure that we support this backup version
if err := manifest.validateManifest(); err != nil {
return err
return fmt.Errorf("backup incompatible: %w", err)
}

// Fill the Database with actual data
Expand Down

0 comments on commit 19baad7

Please sign in to comment.