File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
internal/datastore/common Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ type SchemaNotInitializedError struct {
184184}
185185
186186func (err SchemaNotInitializedError ) GRPCStatus () * status.Status {
187- // TODO: Update to use ERROR_REASON_DATASTORE_NOT_MIGRATED once authzed/api#159 is merged
187+ // TODO: Use ERROR_REASON_DATASTORE_NOT_MIGRATED once authzed-go is updated (authzed /api#159 merged)
188188 return spiceerrors .WithCodeAndDetails (
189189 err ,
190190 codes .FailedPrecondition ,
Original file line number Diff line number Diff line change @@ -140,8 +140,7 @@ func isMigrationIssue(msg string) bool {
140140}
141141
142142// formatNotReadyError creates a user-friendly error message for migration issues.
143- // TODO(authzed/api#159): Once ERROR_REASON_DATASTORE_NOT_MIGRATED is available in the API,
144- // use spiceerrors.WithCodeAndReason to include the structured error reason.
143+ // TODO: Use ERROR_REASON_DATASTORE_NOT_MIGRATED once authzed-go is updated (authzed/api#159 merged)
145144func formatNotReadyError (msg string ) error {
146145 return status .Errorf (codes .FailedPrecondition ,
147146 "SpiceDB datastore is not migrated. Please run 'spicedb datastore migrate'. Details: %s" , msg )
You can’t perform that action at this time.
0 commit comments