Skip to content

Provide friendlier error messages on failed project restore #15372

Open
@nijel

Description

@nijel

Describe the issue

When project backup is not compatible with current version it fails with a horrible error message:

Image

The full JSON validation error message is useless to the user and too long to be useful to anybody.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

  1. Go to Hosted Weblate
  2. Backup a project
  3. Try to restore it in a stable Weblate version

Expected behavior

We could probably safely assume that this is caused by newer backup and tell user to upgrade. The full validation message could be hidden.

Screenshots

No response

Exception traceback

How do you run Weblate?

weblate.org service

Weblate versions

No response

Weblate deploy checks

Additional context

No response

Metadata

Metadata

Assignees

Labels

Waiting for: ImplementationAdded to a milestone, will be resolved according to the milestone timeline.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions