diff options
Diffstat (limited to 'swiftclient/shell.py')
-rwxr-xr-x | swiftclient/shell.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py index e579b8f..c7bb4f8 100755 --- a/swiftclient/shell.py +++ b/swiftclient/shell.py @@ -845,6 +845,12 @@ def st_upload(parser, args, output_manager): ) else: output_manager.error("%s" % error) + too_large = (isinstance(error, ClientException) and + error.http_status == 413) + if too_large and options.verbose > 0: + output_manager.error( + "Consider using the --segment-size option " + "to chunk the object") except SwiftError as e: output_manager.error(e.value) |