Closed almereyda closed 1 day ago
@almereyda This is done on purpose to avoid warning when the default path directus-sync.config.js
does not exists.
However, we could trigger a warning when the path is not the default one and the file does not exists.
Yes, a wrong layer in the cascade of errors is surfaced.
The same error appeared today, but when running through npm
instead of npx
. Yet another failure condition triggered this, since a configuration file would not be found, which an npx invocation was perfectly fine with.
This has been solved : https://github.com/tractr/directus-sync/releases/tag/directus-sync%403.1.2
Arigato.
Describe the bug
When running the command with a parameter for a configuration file that doesn't exist, the resulting error indicates something wrong within the file, but does not highlight the fact, that it wasn't found in the first place.
To Reproduce Steps to reproduce the behavior:
This was caused by the configuration file actually being called
directus-sync.nightly.json
, within which no syntax errors could be found..Expected behavior
The command gives a clear and concise description of what caused it, stating that the file does not exist.
Versions (please complete the following information):
pnpx directus-sync -V
outputserror