feat: weraser api 연동 부분
- exception 발생시 exception message도 같이 출력
This commit is contained in:
@@ -172,8 +172,9 @@ class AdminChatCharacterController(
|
||||
|
||||
// success가 true이면 data.id 반환
|
||||
return apiResponse.data?.id ?: throw SodaException("등록에 실패했습니다. 응답에 ID가 없습니다.")
|
||||
} catch (_: Exception) {
|
||||
throw SodaException("등록에 실패했습니다. 다시 시도해 주세요.")
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
throw SodaException("${e.message}, 등록에 실패했습니다. 다시 시도해 주세요.")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user