summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-03-28 00:09:22 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-03-28 00:09:22 +0200
commit65993eb5969024256f6c9564a541b27f05cd1414 (patch)
treee3c12787b7253931cc8f5c66ae60000b728ab074
parent79470d9defec44fa7308d97f316d0561dabdf94d (diff)
Improve "File too big" error message
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xfb.py2
1 files changed, 1 insertions, 1 deletions
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"]):