Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit edcf63e

Browse files
author
Shuai Wang
authored
Throw error if no connection to luis endpoint (#1303)
* add throw ENOTFOUND error * retrigger
1 parent a9a92a5 commit edcf63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/lu/src/parser/lubuild/http-request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const httpRequest = async function (config: any) {
7575
return error.response
7676
} else {
7777
// Something happened in setting up the request that triggered an Error
78-
return Error(error.message)
78+
throw error
7979
}
8080
}
8181
}

0 commit comments

Comments
 (0)