wangwei 5 년 전
부모
커밋
f5149fe28a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/cn/com/qmth/examcloud/web/bootstrap/AppBootstrap.java

+ 2 - 2
src/main/java/cn/com/qmth/examcloud/web/bootstrap/AppBootstrap.java

@@ -198,10 +198,10 @@ public class AppBootstrap {
 			Map<String, String> headers = Maps.newHashMap();
 			headers.put("Trace-Id", startupCode);
 			resp = OKHttpUtil.call(HttpMethod.POST, url.toString(), headers, req);
+			String body = resp.body().string();
 			if (resp.code() != HttpStatus.OK.value()) {
-				throw new ExamCloudRuntimeException("fail to get configuration");
+				throw new ExamCloudRuntimeException("fail to get configuration. " + body);
 			}
-			String body = resp.body().string();
 
 			String encryptedAppId = resp.header("App-Id");
 			String encryptedSecretKey = resp.header("Secret-Key");