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

feat(break): introduce an error in the function's response #20

Conversation

tranhoangvuit
Copy link
Contributor

What kind of change does this PR introduce?

Refactor: Add an error to the function's response to make it clearer and easier to identify errors

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

This is break change: (with old function we will need to add error in response)

	file, err := os.Open("dummy.txt")
	if err != nil {
		panic(err)
	}
	c := storage_go.NewClient(rawUrl, token, map[string]string{})
	resp, err := c.UploadFile("test", "test.txt", file)
	fmt.Println(resp, err)

Additional context

Add any other context or screenshots.

@tranhoangvuit tranhoangvuit merged commit b2d1f9e into supabase-community:dev Oct 8, 2023
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.

1 participant