transifex / cli

The Transifex command-line client
Apache License 2.0
66 stars 24 forks source link

"Given resources not found in config file" is incorrect error message #228

Open jpmckinney opened 3 months ago

jpmckinney commented 3 months ago

Here: https://github.com/transifex/cli/blob/fc8065745be82e7131f85e51447c25dabc99162c/internal/txlib/delete.go#L103

To reproduce:

$ tx delete --skip projectname.resourcename
# Initiating Delete

Deleting resource 'resourcename'
Resource 'resourcename' deleted

Then repeat (you can double-check that the .tx/config file hasn't changed):

$ tx delete --skip projectname.resourcename
# Initiating Delete

Given resources not found in config file.

The error message should be something like "Given resources not found in Transifex" instead, because the resource IS in the config file (local) – it's just not in Transifex (remote).