Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message required for toFile #70

Open
marshallswain opened this issue May 16, 2024 · 0 comments
Open

Better error message required for toFile #70

marshallswain opened this issue May 16, 2024 · 0 comments
Labels

Comments

@marshallswain
Copy link

I ran the following code and service was undefined, which caused an error:

toFile(({ lib = 'src', service, files }: Context) => [
  lib,
  'services',
  service,
  files.main,
]),

but it was way too hard to track this down with only this much information about the error in the console:

? What is the dashed name of your service? (e.g. category-libraries) folders
Oh no! Something went wrong: The "paths[3]" argument must be of type string. Received undefined

We need a better message and a stack trace. I couldn't find the cause of the error in the debugger, either.

@daffl daffl added the pinion label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants