[
https://issues.apache.org/jira/browse/CONNECTORS-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15973447#comment-15973447
]
Kishore Kumar commented on CONNECTORS-1414:
-------------------------------------------
Hi [~schuch]
The "error 0" is from Ajax, since the client is not able to communicate with
the server, we display the statusCode and statusText received by the client.
As a quick fix, I can add an error message based on the statusCode recieved
{code:borderStyle=solid}
var msg = xhr.status + " " + xhr.statusText;
//Proper error message, if the server is down.
if(xhr.readyState === 0 && xhr.status === 0)
{
msg = "Couldn't connect to the server. Please check if the server is up and
running."
}
{code}
Later on, we can read the error text from language files by adding the text as
hidden in index.jsp.
Please let me know if you have better text for the above error message.
Thanks,
KK
> Return descriptive error message when UI is disconnected
> --------------------------------------------------------
>
> Key: CONNECTORS-1414
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1414
> Project: ManifoldCF
> Issue Type: Improvement
> Components: Framework core
> Affects Versions: ManifoldCF 2.7
> Reporter: Markus Schuch
> Priority: Minor
>
> When disconnected from server the new UI returns {{Error 0}} instead of a
> descriptive error message. This should be changed to something like
> {{Connection lost}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)