SecureValueRecovery2/host/proto/error.go
2023-05-05 16:25:12 -06:00

17 lines
331 B
Go

// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
package proto
import (
"fmt"
)
// Error implements the `error` interface on the `Error` enum.
func (e Error) Error() string {
if str, ok := Error_name[int32(e)]; ok {
return str
}
return fmt.Sprintf("UnknownErrorEnumValue(%d)", int32(e))
}