Skip to content

FR: return identifiable errors in iid package #149

@kaskavalci

Description

@kaskavalci

InstanceID client returns a formatted error message: https://github.com/firebase/firebase-admin-go/blob/master/iid/iid.go#L88

Caller cannot distinguish the error and take action. Errors should be public and returned error should be the error itself.

if err, ok := errorCodes[resp.Status]; ok {
	return err
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions