Skip to content

Commit

Permalink
chore: improve error msg (risingwavelabs#9089)
Browse files Browse the repository at this point in the history
  • Loading branch information
st1page authored Apr 10, 2023
1 parent 7088fd3 commit ab09d29
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/connector/src/sink/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,10 @@ fn datum_to_json_object(field: &Field, datum: DatumRef<'_>) -> ArrayResult<Value
json!(map)
}
_ => {
return Err(ArrayError::internal(
"datum_to_json_object: unsupported data type".to_string(),
));
return Err(ArrayError::internal(format!(
"datum_to_json_object: unsupported data type {:?}, {:?}",
field.data_type, scalar_ref,
)));
}
};

Expand Down

0 comments on commit ab09d29

Please sign in to comment.