Skip to content

Commit a91a23e

Browse files
committed
Use a link to the vector.dev documentation for the VRL error messages
1 parent 0e5bf38 commit a91a23e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/executor/src/utils/expression.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ pub fn compile_expression(
2424
diagnostics
2525
.errors()
2626
.iter()
27-
.map(|d| format!("{}: {}", d.code, d.message))
27+
.map(|d| {
28+
format!(
29+
"https://vector.dev/docs/reference/vrl/errors/#{} - {}",
30+
d.code, d.message
31+
)
32+
})
2833
.collect::<Vec<_>>()
2934
.join(", ")
3035
})?;

0 commit comments

Comments
 (0)