Skip to content

Commit

Permalink
fix error print nil pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nitram509 committed Apr 3, 2024
1 parent f0a169e commit 90736cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions debug_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ func (drc *DebugReportCommand) Run(args *GlobalOptions) error {
args.Verbose = true
model, _, err := readTokenAndModel2GlobalOptions(args, drc.Address)
if err != nil {
println("Warning, prior error: " + err.Error())
printDebugNotLoggedIn(args, drc.Address, err)
} else {
println("Error: " + err.Error())
}
printDebugLoggedIn(args, model, drc.Address)
return nil
Expand Down

0 comments on commit 90736cf

Please sign in to comment.