Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #204 from apiaryio/honzajavorek/upgrade-drafter
Browse files Browse the repository at this point in the history
Use Drafter v4
  • Loading branch information
honzajavorek authored Jan 29, 2019
2 parents f9f10b7 + 462abb4 commit 5699fbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ Falling back to API Blueprint by default.
let nativeError = null;

if (!(err || apiElements)) {
nativeError = new Error('Unexpected parser error occurred.');
nativeError = new Error('Unexpected parser error occurred');
} else if (err) {
// Turning Fury error object into standard JavaScript error
nativeError = new Error(err.message);
} else if (apiElements && !apiElements.errors.isEmpty) {
nativeError = new Error('Parser finished with errors');
}

if (modifiedApiElements) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"dependencies": {
"fury": "3.0.0-beta.8",
"fury-adapter-apib-parser": "0.12.0",
"fury-adapter-apib-parser": "0.13.0-beta",
"fury-adapter-oas3-parser": "0.3.0",
"fury-adapter-swagger": "0.23.1",
"uri-template": "1.0.1"
Expand Down

0 comments on commit 5699fbe

Please sign in to comment.