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

remove archived package, use std #30

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

arukiidou
Copy link
Contributor

tests

https://go.dev/play/p/NG8szof-xAJ

	err := fmt.Errorf("test-Wrap")
	fmt.Println(errors.Wrap(err, "fail to decode the yaml configuration"))
	fmt.Println(fmt.Errorf("fail to decode the yaml configuration: %w", err))

	path := "test-Wrapf"
	fmt.Println(errors.Wrapf(err, "fail to read file '%s'", path))
	fmt.Println(fmt.Errorf("fail to read file '%s': %w", path, err))

	message := "test-Errorf"
	fmt.Println(fmt.Errorf(
		"fail to generate the image {status: %d, body: %s}",
		500, message))
	fmt.Println(fmt.Errorf(
		"fail to generate the image {status: %d, body: %s}",
		500, message))
fail to decode the yaml configuration: test-Wrap
fail to decode the yaml configuration: test-Wrap
fail to read file 'test-Wrapf': test-Wrap
fail to read file 'test-Wrapf': test-Wrap
fail to generate the image {status: 500, body: test-Errorf}
fail to generate the image {status: 500, body: test-Errorf}

@ggrossetie
Copy link
Member

That's nice 👍🏻

@ggrossetie ggrossetie merged commit bfb61c4 into yuzutech:master Mar 23, 2024
1 check passed
@arukiidou arukiidou deleted the chore/remove-errors branch March 23, 2024 15:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants