Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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}

Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants