Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (6 sloc) 173 Bytes
Bus = require "./bus"
bus = new Bus
bus.on "*.error", (error) ->
{name,message} = error
console.log "#{name}: #{message}"
bus.emit "foo.bar.error", new Error "Ruh-roh!"
Something went wrong with that request. Please try again.