mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
console: error out if no flows table is present yet
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
package console
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strconv"
|
||||
@@ -144,6 +145,9 @@ AND engine LIKE '%MergeTree'
|
||||
Oldest: oldest[0].T,
|
||||
})
|
||||
}
|
||||
if len(newFlowsTables) == 0 {
|
||||
return errors.New("no flows table present (yet?)")
|
||||
}
|
||||
|
||||
c.flowsTablesLock.Lock()
|
||||
c.flowsTables = newFlowsTables
|
||||
|
||||
Reference in New Issue
Block a user