From 5a5ce4d417cc20f09998920bef5b0ca238a21f46 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 2 Jul 2023 11:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96OSS=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/ossconfigs/oss_types.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/serverconfigs/ossconfigs/oss_types.go b/pkg/serverconfigs/ossconfigs/oss_types.go index d02629c..d06b352 100644 --- a/pkg/serverconfigs/ossconfigs/oss_types.go +++ b/pkg/serverconfigs/ossconfigs/oss_types.go @@ -3,6 +3,8 @@ package ossconfigs +import "errors" + type OSSType = string type OSSTypeDefinition struct { @@ -26,5 +28,5 @@ func FindOSSType(code string) *OSSTypeDefinition { } func DecodeOSSOptions(ossType OSSType, optionsJSON []byte) (any, error) { - return nil, nil + return nil, errors.New("'" + ossType + "' has not been supported") }