onflow / onflow/flow-cli

Improve error message for private key not found

Open
#2,012 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Go
Stars
209
Forks
87
Avg merge
1d 17h
Merged PRs (30d)
3

Description

Issue To Be Solved

When developers new to Flow fork a starter repo, it's very likely that they will encounter errors relating to their private key not being found. To someone without context, the error could be pretty confusing:

❌ Failed to deploy contract ExampleConnectors: failed to deploy contract ExampleConnectors: could not load the key for the account from provided location testnet.pkey: open testnet.pkey: no such file or directory
❌ Command Error: failed deploying all contracts
(Optional): Suggest A Solution

Adjust the error message to give user clear resolution actions & be more descriptive

(Optional): Context

n/a

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Flow CLI deployment path that emits the missing private-key error and trace how the key-loading failure is reported. Update the message to provide clearer resolution actions for a missing key file, then verify the deployment behavior when the referenced private key is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.