Gary, el Pingüino Artefacto
Gary, el Pingüino Artefacto
TtRPC
Created by Gary, el Pingüino Artefacto on 1/5/2025 in #❓-help
Type safe errors?
With the errorFormatter, these errors will be on every procedure even if the procedure doesn't procedure them
7 replies
TtRPC
Created by Gary, el Pingüino Artefacto on 1/5/2025 in #❓-help
Type safe errors?
Almost, but not quite there. For example, if a procedure requires some authentication, then in the error prop something like "AUTHENTICATION_ERROR", if the procedure also needs to validate permissions, then the error should be like "AUTHENTICATION_ERROR" | "MISSING_PERMISSIONS".
7 replies