Skip to content

Commit

Permalink
set server.error.include-message to ALWAYS (#9045)
Browse files Browse the repository at this point in the history
  • Loading branch information
onewe authored Aug 30, 2022
1 parent aba8819 commit c505a3f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 18 deletions.
1 change: 0 additions & 1 deletion console-ui/src/globalLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ const request = (function(_global) {
const [url, paramsStr] = config.url.split('?');
const params = paramsStr ? paramsStr.split('&') : [];
params.push(`accessToken=${accessToken}`);
params.push('message=true');

return $.ajax(
Object.assign({}, config, {
Expand Down
1 change: 0 additions & 1 deletion console-ui/src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const request = () => {
if (!params) {
config.params = {};
}
config.params.message = true;
if (!url.includes('auth/users/login')) {
let token = {};
try {
Expand Down
2 changes: 1 addition & 1 deletion console/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
### Default web context path:
server.servlet.contextPath=/nacos
### Include message field
server.error.include-message=ON_PARAM
server.error.include-message=ALWAYS
### Default web server port:

#*************** Network Related Configurations ***************#
Expand Down
4 changes: 2 additions & 2 deletions console/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
<!-- 第三方css结束 -->
<link href="./css/main.css?d55d0acbe80d224a66fe" rel="stylesheet"></head>
<link href="./css/main.css?d06d0b89622baa349ee9" rel="stylesheet"></head>

<body>
<div id="root" style="overflow:hidden"></div>
Expand All @@ -56,6 +56,6 @@
<script src="console-ui/public/js/merge.js"></script>
<script src="console-ui/public/js/loader.js"></script>
<!-- 第三方js结束 -->
<script type="text/javascript" src="./js/main.js?d55d0acbe80d224a66fe"></script></body>
<script type="text/javascript" src="./js/main.js?d06d0b89622baa349ee9"></script></body>

</html>
22 changes: 11 additions & 11 deletions console/src/main/resources/static/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion distribution/conf/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
### Default web context path:
server.servlet.contextPath=/nacos
### Include message field
server.error.include-message=ON_PARAM
server.error.include-message=ALWAYS
### Default web server port:
server.port=8848

Expand Down
2 changes: 1 addition & 1 deletion distribution/conf/application.properties.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
### Default web context path:
server.servlet.contextPath=/nacos
### Include message field
server.error.include-message=ON_PARAM
server.error.include-message=ALWAYS
### Default web server port:
server.port=8848

Expand Down

0 comments on commit c505a3f

Please sign in to comment.