diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-02-12 12:28:07 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-02-12 12:28:07 +0100 |
commit | 2ed515e0196f7a825d62c9d361b589e417bfe20d (patch) | |
tree | 6a0df375f1732ff49ac045a6871a573b25427ffa | |
parent | 5e5b38ab8ff4c4fbe4ebe2c17475c0598a764629 (diff) | |
download | zorglub-2ed515e0196f7a825d62c9d361b589e417bfe20d.zip zorglub-2ed515e0196f7a825d62c9d361b589e417bfe20d.tar.gz |
improve error_404 log msg
-rw-r--r-- | lib/zorglub/node.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index ed1a573..8b1bee0 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -232,19 +232,19 @@ module Zorglub meth ||= 'index' $stderr << "=> #{meth}(#{args.join ','})\n" if app.opt :debug node = self.new env, meth, args - return error_404 node if not node.respond_to? meth + return error_404 node, meth if not node.respond_to? meth node.realize! end # def partial env, meth, *args node = self.new env, meth.to_s, args, true - return error_404 node if not node.respond_to? meth + return error_404 node, meth if not node.respond_to? meth node.feed! env[:no_hooks] node.content end # - def error_404 node - $stderr << " !! method not found\n" if app.opt :debug + def error_404 node, meth + $stderr << " !! #{node.class.name}::#{meth} not found\n" if app.opt :debug resp = node.response resp.status = 404 resp['Content-Type'] = 'text/plain' |