You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve bin/dev kill error handling for process termination
Enhance the terminate_processes method to distinguish between ESRCH
(process already stopped) and EPERM (permission denied) errors, providing
clearer feedback to users when process termination fails.
Key improvements:
- Separate handling for ESRCH vs EPERM exceptions
- User warning when permission is denied for a process
- Clearer indication of what actually happened during process termination
This change aligns with the pattern implemented in react_on_rails-demos
PR #42 for better process management.
Fixes#1858
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add comprehensive test coverage and edge case handling for terminate_processes
Improvements based on PR feedback:
1. Test Coverage:
- Add 7 new test cases for terminate_processes method
- Cover ESRCH, EPERM, ArgumentError, RangeError scenarios
- Test mixed success/error cases
2. Edge Case Handling:
- Handle ArgumentError (invalid signal)
- Handle RangeError (invalid PID)
- Consistent with file_manager.rb patterns
3. Return Value Consistency:
- All rescue branches now explicitly return nil
- Consistent behavior across all error types
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments