Merge pull request #130 from vishrutshah/bug-fix
Minor bug fix in error construction
This commit is contained in:
Коммит
f7cf17e7c9
|
@ -614,6 +614,7 @@ class SpecValidator {
|
|||
|
||||
let request = null;
|
||||
let validationResult = {};
|
||||
validationResult['errors'] = [];
|
||||
if (!foundIssues) {
|
||||
try {
|
||||
request = new HttpRequest()
|
||||
|
@ -622,7 +623,7 @@ class SpecValidator {
|
|||
validationResult = operation.validateRequest(request);
|
||||
} catch (err) {
|
||||
request = null;
|
||||
let e = self.constructErrorObject(ErrorCodes.ErrorInPreparingRequest, error.message, [err]);
|
||||
let e = self.constructErrorObject(ErrorCodes.ErrorInPreparingRequest, err.message, [err]);
|
||||
validationResult.errors.push(e);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче