-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat!: throw an error when no file was found #127
Conversation
🦋 Changeset detectedLatest commit: a3faaf9 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
src/serve.ts
Outdated
) | ||
updateFileMapFromTargets(copyTargets, fileMap) | ||
} catch (e) { | ||
config.logger.error(formatConsole(pc.red((e as Error).toString()))) | ||
!silent && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it was missed. All logs here are silenceable
@sapphi-red, any news here? 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
reasons here
important points:
silent
to thecopyAll
). Another alternative I thought was to return an array of failed results and useoutputCopyLog
to show them, then I would not need to pass thesilent
flag.silent
as it looks for this purpose. I don't think make sense to create another flagEvidence:
build
silent=false
silent=true
server
silent=false
silent=true (the server keeps running, but there is a logger.error)