Skip to content

Commit 718ed1d

Browse files
author
Peter Kuma
committed
Fix error reporting when item too large.
1 parent 4da34f3 commit 718ed1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fileshack/static/fileshack/js/fileshack.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ var FileShack = new Class({
174174
}
175175

176176
if (ITEM_SIZE_LIMIT > 0 && file.size > ITEM_SIZE_LIMIT) {
177-
item.error(ITEM_SIZE_LIMIT_ERROR_LABEL, ITEM_SIZE_LIMIT_ERROR_MESSAGE);
177+
item.onError({
178+
label: ITEM_SIZE_LIMIT_ERROR_LABEL,
179+
message: ITEM_SIZE_LIMIT_ERROR_MESSAGE
180+
});
178181
return;
179182
}
180183

0 commit comments

Comments
 (0)