Skip to content

Commit 8d5bb66

Browse files
committed
Include actual error message when connector is not found
1 parent 9a18757 commit 8d5bb66

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ export const getConnectorById = async ({
2929
throwIfSystemAction: true,
3030
});
3131
} catch (error) {
32-
throw createInferenceRequestError(`No connector found for id '${connectorId}'`, 400);
32+
throw createInferenceRequestError(
33+
`No connector found for id '${connectorId}'\n${error.message}`,
34+
400
35+
);
3336
}
3437

3538
return connectorToInference(connector);

0 commit comments

Comments
 (0)