소스 검색

HUE-1511 [pig] Editor interprets slash in literal constant as a path

Fails silently on wrong path
Enrico Berti 12 년 전
부모
커밋
bfd51765b5
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      apps/pig/src/pig/templates/app.mako

+ 1 - 4
apps/pig/src/pig/templates/app.mako

@@ -766,10 +766,7 @@ ${ commonheader(None, "pig", user, "100px") | n,unicode }
     function showHdfsAutocomplete(path, showHCatHint) {
       $.getJSON(path, function (data) {
         CodeMirror.currentFiles = [];
-        if (data.error != null) {
-          $.jHueNotify.error(data.error);
-        }
-        else {
+        if (data.error == null) {
           $(data.files).each(function (cnt, item) {
             if (item.name != ".") {
               var _ico = "icon-file-alt";