Skip to content

Commit

Permalink
Throw error if no connection to luis endpoint (#1303)
Browse files Browse the repository at this point in the history
* add throw ENOTFOUND error

* retrigger
  • Loading branch information
cosmicshuai authored Oct 1, 2021
1 parent a9a92a5 commit edcf63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lu/src/parser/lubuild/http-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const httpRequest = async function (config: any) {
return error.response
} else {
// Something happened in setting up the request that triggered an Error
return Error(error.message)
throw error
}
}
}
Expand Down

0 comments on commit edcf63e

Please sign in to comment.