瀏覽代碼

AMBARI-13158: error message is not accurate when a directory field value has a space (jaoki)

Jun Aoki 9 年之前
父節點
當前提交
063e79f686
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-web/app/models/configs/objects/service_config_property.js

+ 1 - 1
ambari-web/app/models/configs/objects/service_config_property.js

@@ -356,7 +356,7 @@ App.ServiceConfigProperty = Em.Object.extend({
             }
           } else {
             if (!validator.isValidDir(value)) {
-              this.set('errorMessage', 'Must be a slash or drive at the start');
+              this.set('errorMessage', 'Must be a slash or drive at the start, and must not contain white spaces');
               isError = true;
             }
           }