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");