From e027a2a6a1330b8cb0612840cec22274d2e2d612 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Mon, 5 Aug 2013 18:06:33 +0300 Subject: [PATCH] nil user balance fix --- engine/action_timing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/action_timing.go b/engine/action_timing.go index 27d956c51..5136242b9 100644 --- a/engine/action_timing.go +++ b/engine/action_timing.go @@ -221,6 +221,7 @@ func (at *ActionTiming) Execute() (err error) { ub, err := storageGetter.GetUserBalance(ubId) if err != nil { Logger.Warning(fmt.Sprintf("Could not get user balances for this id: %s. Skipping!", ubId)) + return 0, err } Logger.Info(fmt.Sprintf("Executing %v on %v", a.ActionType, ub.Id))