- Supported Ruby & Rails Versions
- Installation
- Usage
- Customization
- Development
- Running Tests
- Releasing a New Version
- Contributing
- License
- Thank You for Using Errormoji!
Example of Errormoji error messages:
- (╯°□°)╯︵ ┻━┻ Something went wrong!
- (ಥ_ಥ) File not found!
- (ಠ益ಠ) Invalid input!
- Ruby: 2.7–3.4
- Rails: 6.x, 7.x
Add to your Gemfile:
bundle add errormoji
Or install directly:
gem install errormoji
Enable emoji decoration globally:
require "errormoji"
Errormoji.enable_global_exceptions!
Disable emoji decoration:
Errormoji.disable_global_exceptions!
Enable or disable Errormoji per environment in your Rails config:
# config/environments/development.rb
Rails.application.config.errormoji_enabled = true
# config/environments/production.rb
Rails.application.config.errormoji_enabled = false
Note:
While Errormoji makes your errors way more fun (⌐■_■), we don’t recommend enabling it in production—unless your ops team loves errormojis as much as you do! Decorated error messages might confuse your logs, monitoring tools, or that one serious developer on your team. But hey, you’re the boss: enable Errormoji wherever you want!
Set your own emojis:
Errormoji.emojis = ["😄", "😢", "😡"]
Add emojis to your current list:
Errormoji.emojis << "🤖"
Errormoji.emojis += ["🔥"]
Build your emoji set incrementally!
After checking out the repo, run:
bin/setup
Use bin/console
for an interactive prompt.
Run the test suite with:
bundle exec rake test
Errormoji uses Semantic Versioning.
To release a new version:
- Update the version number in
lib/errormoji/version.rb
. - Run:
This will tag, push, and publish the gem to rubygems.org.
bundle exec rake release
Bug reports and pull requests are welcome on GitHub. Please follow our Code of Conduct.
Open source under the MIT License.
We appreciate you bringing a little more fun to your error messages. Happy coding!
(╯°□°)╯︵ ┻━┻