Skip to content

Conversation

@johnny603
Copy link

Fixes #8

Add error handling to the resize method in lib/eclair/grid.rb to gracefully handle terminal buffer size changes.

  • Wrap the existing resize method code in a begin-rescue block to catch and handle exceptions.
  • Add a log_error method to log any errors encountered during the resize process to an "error.log" file.

Fixes devsisters#8

Add error handling to the `resize` method in `lib/eclair/grid.rb` to gracefully handle terminal buffer size changes.

* Wrap the existing `resize` method code in a `begin-rescue` block to catch and handle exceptions.
* Add a `log_error` method to log any errors encountered during the resize process to an "error.log" file.
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.

Eclair crashes if users changes the size of the terminal buffer in the server selection menu

1 participant