feat: weraser api 연동 부분
- exception 발생시 exception message도 같이 출력
This commit is contained in:
parent
74ed7b20ba
commit
b0a6fc6498
|
@ -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}, 등록에 실패했습니다. 다시 시도해 주세요.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue