Skip to content

Commit

Permalink
Return error
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Mar 8, 2024
1 parent ab5a350 commit 6c89295
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/super/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"github.com/spf13/cobra"

"github.com/onflow/flow-cli/internal/command"
"github.com/onflow/flow-cli/internal/util"
)

type flagsDev struct {
Expand Down Expand Up @@ -76,7 +75,7 @@ func dev(
if devFlags.StartEmulator {
privateKey, err := serviceAccount.Key.PrivateKey()
if err != nil {
util.Exit(1, "Only hexadecimal keys can be used as the emulator service account key.")
return nil, fmt.Errorf("failed to get private key: %s", err)
}

consoleWriter := zerolog.ConsoleWriter{Out: os.Stdout}
Expand Down

0 comments on commit 6c89295

Please sign in to comment.