You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs for sled_upsert note that attempting to upsert a decommissioned sled will fail, but the error it returns in such a case is confusing:
InternalError { internal_message: "Unknown diesel error creating Sled called \"d2de48dd-e9b2-4d5f-ac8c-d5ff0a97997d\": Record not found" }
I think the "Record not found" is coming because we filter on the state not being decommissioned, but we should map this to a more descriptive error than "unknown diesel error".
The text was updated successfully, but these errors were encountered:
The docs for
sled_upsert
note that attempting to upsert a decommissioned sled will fail, but the error it returns in such a case is confusing:I think the "Record not found" is coming because we filter on the state not being decommissioned, but we should map this to a more descriptive error than "unknown diesel error".
The text was updated successfully, but these errors were encountered: