diff --git a/front/lib/api/data_source_view.ts b/front/lib/api/data_source_view.ts index 3571a726dc4f..f0be3c5263cd 100644 --- a/front/lib/api/data_source_view.ts +++ b/front/lib/api/data_source_view.ts @@ -110,12 +110,7 @@ async function getContentNodesForManagedDataSourceView( if (connectorsRes.isErr()) { if (connectorsRes.error.type === "connector_rate_limit_error") { - return new Err( - new Error( - connectorsRes.error.message ?? - "An error occurred while fetching the resources' content nodes." - ) - ); + return new Err(new Error(connectorsRes.error.message)); } return new Err( new Error(