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

Format strings are not substituted in error message #6

Open
jdbaldry opened this issue Nov 4, 2022 · 0 comments
Open

Format strings are not substituted in error message #6

jdbaldry opened this issue Nov 4, 2022 · 0 comments

Comments

@jdbaldry
Copy link
Contributor

jdbaldry commented Nov 4, 2022

I expected that usage of %q or other format strings would result in the error message substituting those for the arguments defined in args.

Concrete example using eish serve, built at the latest release, on a .go file to trigger an error with format strings.
Errata source at 39fda0b:

$ eish serve --source ~/ext/dannykopping/errata/errata.go

Returns:

eish encountered an error: [errata-serve-web-ui] <[email protected]/command.go:163> Cannot serve web UI for datasource %q (path="/home/jdb/ext/dannykopping/errata/errata.go"). For more details, see https://dannykopping.github.io/errata/errata/errata-serve-web-ui
...

I expected something like:

eish encountered an error: [errata-serve-web-ui] <[email protected]/command.go:163> Cannot serve web UI for datasource "/home/jdb/ext/dannykopping/errata/errata.go". For more details, see https://dannykopping.github.io/errata/errata/errata-serve-web-ui
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant