forked from Elara6331/itd
Add warning if current InfiniTime doesn't support BLE FS (#29)
This commit is contained in:
parent
d232340edd
commit
006f245c10
@ -6,6 +6,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cheggaaa/pb/v3"
|
"github.com/cheggaaa/pb/v3"
|
||||||
|
"github.com/rs/zerolog/log"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"go.arsenm.dev/itd/api"
|
"go.arsenm.dev/itd/api"
|
||||||
)
|
)
|
||||||
@ -20,6 +21,7 @@ func fwUpgrade(c *cli.Context) error {
|
|||||||
|
|
||||||
err = resLoad(c.Context, []string{absRes})
|
err = resLoad(c.Context, []string{absRes})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Error().Msg("Resource loading has returned an error. This can happen if your current version of InfiniTime doesn't support BLE FS. Try updating without resource loading, and then load them after using the `itctl res load` command.")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user