feat: weraser api 연동 부분

- exception 발생시 exception message도 같이 출력
This commit is contained in:
Klaus 2025-08-07 21:18:29 +09:00
parent 74ed7b20ba
commit b0a6fc6498
1 changed files with 3 additions and 2 deletions

View File

@ -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}, 등록에 실패했습니다. 다시 시도해 주세요.")
}
}