Skip to content

Commit

Permalink
HUE-8583 [fb] Surface too many buckets error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesjean committed Sep 20, 2018
1 parent 03e2acc commit cc69a15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions apps/filebrowser/src/filebrowser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,16 +1064,10 @@ def generic_op(form_class, request, op, parameter_names, piggyback=None, templat
if is_admin(request.user) 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}
if request.is_ajax():
return HttpResponseForbidden(smart_str(e))
else:
raise PopupException(msg, detail=e)
raise PopupException(msg, detail=e)
except S3FileSystemException, e:
msg = _("S3 filesystem exception.")
if request.is_ajax():
return HttpResponseForbidden(smart_str(e))
else:
raise PopupException(msg, detail=e)
raise PopupException(msg, detail=e)
except NotImplementedError, e:
msg = _("Cannot perform operation.")
raise PopupException(msg, detail=e)
Expand Down
2 changes: 1 addition & 1 deletion desktop/libs/aws/src/aws/s3/s3fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def mkdir(self, path, *args, **kwargs):
except S3FileSystemException, e:
raise e
except S3ResponseError, e:
raise S3FileSystemException(_('Failed to create S3 bucket "%s": %s') % (bucket_name, e.reason))
raise S3FileSystemException(_('Failed to create S3 bucket "%s": %s: %s') % (bucket_name, e.reason, e.body))
except Exception, e:
raise S3FileSystemException(_('Failed to create S3 bucket "%s": %s') % (bucket_name, e))

Expand Down

0 comments on commit cc69a15

Please sign in to comment.