Skip to content

Commit 0d924dd

Browse files
update error type
1 parent 674eed5 commit 0d924dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/handlers/http/ingest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ pub async fn post_event(
400400
let stream = validate_stream_for_ingestion(&stream_name)?;
401401

402402
if stream.get_time_partition().is_some() {
403-
return Err(PostError::CustomError(
404-
"Ingestion is not allowed to stream with time partition".to_string(),
405-
));
403+
return Err(PostError::Invalid(anyhow::anyhow!(
404+
"Ingestion is not allowed to stream with time partition. Please upgrade to Parseable enterprise to enable this feature"
405+
)));
406406
}
407407

408408
flatten_and_push_logs(json, &stream_name, &log_source, &p_custom_fields, None).await?;

0 commit comments

Comments
 (0)