Pārlūkot izejas kodu

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

Fails silently on wrong path
Enrico Berti 12 gadi atpakaļ
vecāks
revīzija
bfd51765b5
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  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";