Преглед изворни кода

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

Fails silently on wrong path
Enrico Berti пре 12 година
родитељ
комит
bfd5176
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) {
     function showHdfsAutocomplete(path, showHCatHint) {
       $.getJSON(path, function (data) {
       $.getJSON(path, function (data) {
         CodeMirror.currentFiles = [];
         CodeMirror.currentFiles = [];
-        if (data.error != null) {
-          $.jHueNotify.error(data.error);
-        }
-        else {
+        if (data.error == null) {
           $(data.files).each(function (cnt, item) {
           $(data.files).each(function (cnt, item) {
             if (item.name != ".") {
             if (item.name != ".") {
               var _ico = "icon-file-alt";
               var _ico = "icon-file-alt";