From 65993eb5969024256f6c9564a541b27f05cd1414 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 28 Mar 2016 00:09:22 +0200 Subject: Improve "File too big" error message Signed-off-by: Florian Pritz --- fb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb.py b/fb.py index 6e567e9..8e7487b 100755 --- a/fb.py +++ b/fb.py @@ -115,7 +115,7 @@ class CURLWrapper: if filesize > self.config["warnsize"]: self.getServerConfig() if filesize > self.serverConfig["upload_max_size"]: - raise APIException("File too big") + raise APIException("File too big: %s" % (file.path)) if self.serverConfig is not None and (currentChunkSize + filesize > self.serverConfig["request_max_size"] \ or len(chunks[currentChunk]) >= self.serverConfig["max_files_per_request"]): -- cgit v1.2.3-24-g4f1b