null pointer fix
- need to nil check before pulling value
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
//sqlite doesn't have an error type for this error, but we want to catch when this error is thrown
|
||||
//and provide the proper response. It should not be treated as an error if the db isn't setup.
|
||||
ErrInit = "sqlite3: SQL logic error: no such table: commands"
|
||||
ErrInitRsp = "The 'init' command must be run before mctl can be used"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user