directus-sync
directus-sync copied to clipboard
Better error message for missing extension
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.