Skip to content

Commit 6be7a2b

Browse files
committed
fix: not enough args error handling [testnetdeploy]
Signed-off-by: Bruno Calza <brunoangelicalza@gmail.com>
1 parent 6d27a47 commit 6be7a2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/eventprocessor/impl/executor/impl/txnscope_runsql.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,14 @@ func (ts *txnScope) executeWriteStmt(
269269
Msg: err.Error(),
270270
}
271271
}
272+
273+
if strings.Contains(err.Error(), "not enough args to execute query") {
274+
return &errQueryExecution{
275+
Code: "SQLITE_DRIVER_NOT_ENOUGH_ARGS",
276+
Msg: err.Error(),
277+
}
278+
}
279+
272280
return fmt.Errorf("exec query: %s", err)
273281
}
274282

0 commit comments

Comments
 (0)