Skip to content

fix: replace log.Fatal with proper error handling - #19

Merged
virajbhartiya merged 1 commit into
mainfrom
fix/excessive-log-fatal-usage
Jul 20, 2025
Merged

fix: replace log.Fatal with proper error handling#19
virajbhartiya merged 1 commit into
mainfrom
fix/excessive-log-fatal-usage

Conversation

@virajbhartiya

Copy link
Copy Markdown
Member

Summary

Replaces excessive use of log.Fatal() with proper error handling across multiple files to improve application reliability and user experience.

Changes

  • Replace log.Fatal() calls with log.Error() and proper error returns
  • Implement graceful error handling in storage commands
  • Add error propagation in balance and stake operations
  • Improve error handling in client operations

Files Modified

  • internal/commands/storage.go
  • cmd/cli/balance.go
  • cmd/cli/stake.go
  • cmd/cli/client.go

Impact

  • Prevents application termination on non-critical errors
  • Enables better error recovery and user feedback
  • Follows Go best practices for error handling
  • Improves overall application stability

@virajbhartiya virajbhartiya self-assigned this Jul 20, 2025
@virajbhartiya
virajbhartiya merged commit 9f240c1 into main Jul 20, 2025
1 check passed
@virajbhartiya
virajbhartiya deleted the fix/excessive-log-fatal-usage branch July 20, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant