Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error information return #221

Open
jiangyan33 opened this issue Apr 28, 2019 · 1 comment
Open

error information return #221

jiangyan33 opened this issue Apr 28, 2019 · 1 comment

Comments

@jiangyan33
Copy link

source code

function SolrError(req,res,htmlMessage){
   var message = '';
   if(htmlMessage){
      var matches = htmlMessage.match(/<pre>([\s\S]+)<\/pre>/);
      message = decode((matches || ['', htmlMessage])[1].trim());
   }
   HTTPError.call(this, req, res, message);
   Error.captureStackTrace(this,arguments.callee);
   this.statusCode = res.statusCode;
   this.message = res.statusMessage;
   this.name = 'SolrError';
}

error information is in htmlMessage,
res.statusMessage just is "bad request"

@melloware
Copy link
Contributor

Looks like this PR covers this: #210

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants