[fb] Better error message when HTTPFS is not working
@@ -214,8 +214,7 @@ def view(request, path):
if "Connection refused" in e.message:
msg += _(" The HDFS REST service is not available. ")
-
- if request.fs._get_scheme(path).lower() == 'hdfs':
+ elif request.fs._get_scheme(path).lower() == 'hdfs':
if request.user.is_superuser and not _is_hdfs_superuser(request):
msg += _(' Note: you are a Hue admin but not a HDFS superuser, "%(superuser)s" or part of HDFS supergroup, "%(supergroup)s".') \
% {'superuser': request.fs.superuser, 'supergroup': request.fs.supergroup}
