Skip to content

Commit

Permalink
fix: correct panic message to display the raw URI on parsing failure
Browse files Browse the repository at this point in the history
  • Loading branch information
luantranminh committed Dec 30, 2024
1 parent 7c9d67b commit 73088dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/uri/uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func PathFromURI(rawUri string) (string, error) {
func MustParseURI(rawUri string) string {
uri, err := parseUri(rawUri)
if err != nil {
panic(fmt.Sprintf("invalid URI: %s", uri))
panic(fmt.Sprintf("invalid URI: %s", rawUri))
}

return uri.String()
Expand Down

0 comments on commit 73088dd

Please sign in to comment.