Closed leftieFriele closed 2 months ago
259 has some perhaps relevant discussion on error output
💯 on the ideas in that issue.
I think there's a difference between errors thrown for whatever reason and things like what is mentioned here which is invalid input because the user is in the wrong directory. When we know something can go wrong, like here when we look for a file. We should be able to tell the user exactly what to do in a message.
Seems like this issue is related as well, probably the same root cause (poor error message when run outside the package directory): https://github.com/eik-lib/issues/issues/9
Description: When trying to update an alias There is an error message which leaves the user guessing:
The problem was in this case that the user was not in the right directory, which means the folder of the
package.json
for the module.We should be able to let the user know this instead of this error.