Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Format strings are not substituted in error message #6

Description

@jdbaldry

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
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions