mirror of
https://github.com/wekan/wekan.git
synced 2026-01-25 18:56:10 +01:00
Ref: pass through image size error message (correctly)
This commit is contained in:
parent
72abf50b36
commit
1875551a93
2 changed files with 5 additions and 4 deletions
|
|
@ -239,8 +239,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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue