Skip to content

Commit 31531cf

Browse files
committed
fix bpipe dev fail when non-String content sent
1 parent e75c614 commit 31531cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/groovy/bpipe/Sender.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,10 @@ class Sender {
407407

408408
def prettyContent = content
409409

410-
ctx.getResolvedInputs().each { inp ->
411-
prettyContent = prettyContent.replaceAll(inp.toString(), "${ansi().fgBrightMagenta()}$inp${ansi().fgDefault()}")
410+
if(prettyContent instanceof String) {
411+
ctx.getResolvedInputs().each { inp ->
412+
prettyContent = prettyContent.replaceAll(inp.toString(), "${ansi().fgBrightMagenta()}$inp${ansi().fgDefault()}")
413+
}
412414
}
413415

414416
println "Would send: \n\n$prettyContent\n\nto channel $configName:\n"

0 commit comments

Comments
 (0)