Sha256: 5e907935ab0c048a8dc8d51fa15e8a03ecb6a70ba48fc9aa06ed4c3bf2a99d8c

Contents?: true

Size: 216 Bytes

Versions: 5

Compression:

Stored size: 216 Bytes

Contents

module MVCLI
  class Middleware
    class ExceptionLogger
      def call(command)
        yield command
      rescue Exception => e
        command.log << e.message + "\n"
        raise e
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mvcli-0.0.9 lib/mvcli/middleware/exception_logger.rb
mvcli-0.0.8 lib/mvcli/middleware/exception_logger.rb
mvcli-0.0.7 lib/mvcli/middleware/exception_logger.rb
mvcli-0.0.6 lib/mvcli/middleware/exception_logger.rb
mvcli-0.0.5 lib/mvcli/middleware/exception_logger.rb