Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Jernej Kos <[email protected]>
  • Loading branch information
david-yan and kostko authored Jan 30, 2020
1 parent 5ac2dd5 commit 2ba7506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/common/entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func Load(baseDir string, signerFactory signature.SignerFactory) (*Entity, signa

if ent.ID != signer.Public() {
signer.Reset()
return nil, nil, fmt.Errorf("public key mismatch\nsigner: %s\nentity: %s", signer.Public(), ent.ID)
return nil, nil, fmt.Errorf("public key mismatch (signer: %s entity: %s)", signer.Public(), ent.ID)
}

return ent, signer, nil
Expand Down
2 changes: 1 addition & 1 deletion go/oasis-node/cmd/signer/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func doExport(cmd *cobra.Command, args []string) {
os.Exit(1)
}
if err := cmdCommon.ExportEntity(cmdFlags.Signer(), entityDir); err != nil {
logger.Error("failed to extract entity",
logger.Error("failed to export entity",
"err", err,
)
os.Exit(1)
Expand Down

0 comments on commit 2ba7506

Please sign in to comment.