better validation message when changing quota holder fails
@@ -117,7 +117,9 @@ def change_quota_holder(request, shortkey):
except PermissionDenied:
return HttpResponseForbidden()
except utils.QuotaException as ex:
- msg = 'Failed to change quota holder to {}:'.format(new_holder_u.username) + ex.message
+ msg = 'Failed to change quota holder to {0} since {0} does not have ' \
+ 'enough quota to hold this new resource. The exception quota message ' \
+ 'reported for {0} is: '.format(new_holder_u.username) + ex.message
request.session['validation_error'] = msg
return HttpResponseRedirect(res.get_absolute_url())
