Ref: pass through image size error message (correctly)

This commit is contained in:
David Arnold 2020-09-17 01:41:29 -05:00 committed by Denis Perov
parent 545fe96c30
commit 1b591dcda9
2 changed files with 5 additions and 4 deletions

View file

@ -236,8 +236,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();
}