directus-sync icon indicating copy to clipboard operation
directus-sync copied to clipboard

Better error message for missing extension

Open jofmi opened this issue 7 months ago • 2 comments

Is your feature request related to a problem? Please describe. If I try to push a schema to a directus instance without the sync extension, I get the following error:

    errors: [
      {
        "message": "Invalid payload. Collections can't start with \"directus_\".",
        "extensions": {
          "code": "INVALID_PAYLOAD",
          "reason": "Collections can't start with \"directus_\""
        }
      }
    ]
    response: {}

Describe the solution you'd like It would be great if the npx script could detect that the extension is not installed and mention this in the error message.

jofmi avatar Jun 26 '24 10:06 jofmi