class Syntropy::App
def call(req)
def call(req) entry = @router[req.path] render_entry(req, entry) rescue Syntropy::Error => e msg = e.message req.respond(msg.empty? ? nil : msg, ':status' => e.http_status) rescue StandardError => e p e p e.backtrace req.respond(e.message, ':status' => Qeweney::Status::INTERNAL_SERVER_ERROR) end