Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

음악 업로드 에러 추가 #342

Merged
merged 2 commits into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -22,7 +22,8 @@ enum class CtErrorType(val errorCode: Int) {
EXPIRED_TOKEN(4101),
SERVER(5000),
SERVICE(5001),
ENCODING_FAILURE(5002);
ENCODING_FAILURE(5002),
ENCODED_MUSIC_UPLOAD_ERROR(5003);

companion object {
val ctErrorEnums = CtErrorType.values().toList()
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ fun CtErrorType.toMessageId(): Int {
CtErrorType.ENCODING_FAILURE -> R.string.error_encoding_failure
CtErrorType.FAIL_GREEN_EYE_IMAGE_RECOGNITION -> R.string.error_message_server
CtErrorType.INVALID_GREEN_EYE_REQUEST -> R.string.error_message_server
CtErrorType.ENCODED_MUSIC_UPLOAD_ERROR -> R.string.error_uploading_music
}

}
1 change: 1 addition & 0 deletions android/core/ui/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -57,5 +57,6 @@
<string name="error_message_service">"error_message_service"</string>
<string name="error_message_bad_image">유해 이미지에요. 다른 이미지로 바꿔주세요.</string>
<string name="error_encoding_failure">인코딩에 실패했어요. 다시 시도해 주세요.</string>
<string name="error_uploading_music">음악 파일 업로드에 실패했어요! 다시 시도 해주세요.</string>

</resources>