Skip to content

Commit

Permalink
LANGUAGE-CODE が見つからなかった場合のエラーを修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed May 22, 2023
1 parent 20383ff commit 4236ce3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions languages.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func GetLanguageCode(serviceType, lang string, f func(string) (string, error)) (
return languageCode, nil
}
}
return "", fmt.Errorf("%w: %s", ErrUnsupportedLanguageCode, lang)
case "gcp", "test", "dump":
return lang, nil
}
Expand Down

0 comments on commit 4236ce3

Please sign in to comment.