Improve error message on failed http connection
| | |
| | | } |
| | | |
| | | // add some basic labels to client |
| | | $this->output->add_label('loading', 'servererror', 'requesttimedout', 'refreshing'); |
| | | $this->output->add_label('loading', 'servererror', 'connerror', 'requesttimedout', 'refreshing'); |
| | | |
| | | return $this->output; |
| | | } |
| | |
| | | tree += '<span id="msgicn'+uid+'" class="'+css_class+'"> </span>'; |
| | | row.className = row_class; |
| | | |
| | | // build subject link |
| | | // build subject link |
| | | if (cols.subject) { |
| | | var action = flags.mbox == this.env.drafts_mailbox ? 'compose' : 'show'; |
| | | var uid_param = flags.mbox == this.env.drafts_mailbox ? '_draft_uid' : '_uid'; |
| | |
| | | else if (status == 'timeout') |
| | | this.display_message(this.get_label('requesttimedout'), 'error'); |
| | | else if (request.status == 0 && status != 'abort') |
| | | this.display_message(this.get_label('servererror') + ' (No connection)', 'error'); |
| | | this.display_message(this.get_label('connerror'), 'error'); |
| | | |
| | | // redirect to url specified in location header if not empty |
| | | var location_url = request.getResponseHeader("Location"); |
| | |
| | | $messages['storageerror'] = 'Connection to storage server failed.'; |
| | | $messages['servererror'] = 'Server Error!'; |
| | | $messages['servererrormsg'] = 'Server Error: $msg'; |
| | | $messages['connerror'] = 'Connection Error (Failed to reach the server)!'; |
| | | $messages['dberror'] = 'Database Error!'; |
| | | $messages['requesttimedout'] = 'Request timed out'; |
| | | $messages['errorreadonly'] = 'Unable to perform operation. Folder is read-only.'; |