Ref: pass through image size error message (correctly)

This commit is contained in:
David Arnold 2020-09-17 01:41:29 -05:00
parent 55676eb146
commit 433ab32524
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08
2 changed files with 5 additions and 4 deletions

View file

@ -109,8 +109,7 @@ BlazeComponent.extendComponent({
}
});
uploader.on('error', (error, fileData) => {
// XXX check for actually returned error
self.setError('avatar-too-big');
self.setError(error.reason);
});
uploader.start();
}