The error message displayed when Dropbox returns an error is not properly set. The sentence "Failed to upload the file. Dropbox returned the following error: !dropbox-error" is displayed, without Dropbox's message.

Line 300 in dropbox.module:

form_set_error('upload', t('Failed to upload the file. Dropbox returned the following error: !dropbox-error', array('!dropbox-error', $error)));

Should be:

form_set_error('upload', t('Failed to upload the file. Dropbox returned the following error: !dropbox-error', array('!dropbox-error' => $error)));

CommentFileSizeAuthor
#1 465898_fix_error_message.patch720 bytesdeviantintegral

Comments

deviantintegral’s picture

StatusFileSize
new720 bytes

Thanks. Here's a patch which I'll be committing shortly.

deviantintegral’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.