Converts a raw gRPC error into a formatted Error with a human-readable
message.
GRPC errors from @grpc/grpc-js are Error instances augmented with a
numeric code property (the gRPC status code). When that property is
present, the code is included in the error message to ease diagnostics.
Parameters
error: unknown
The raw caught value from a failed gRPC call.
Returns Error
A properly formatted Error suitable for BullMQ's
failedReason.
Converts a raw gRPC error into a formatted
Errorwith a human-readable message.GRPC errors from
@grpc/grpc-jsareErrorinstances augmented with a numericcodeproperty (the gRPC status code). When that property is present, the code is included in the error message to ease diagnostics.