Subject: | SVN::Web plugins should be able to fail in a more helpful way than dieing |
All errors in a SVN::Web plugin &run subroutine are handled by "die", which turns into another "die" in &SVN::Web::run, which generally shows up as a 500 Internal Server Error. However, many of these reasons for death come from end-user error and could be worked around if a more appropriate error was given.
See, for example, http://svn.clkao.org/svnweb/svk/browse/trunk/binfoobar/ -- this would more naturally and usefully give a 404 File Not Found.
If the maintainers agree that this would be a useful change I would be interested in writing a patch for it after figuring out what the best method of change would be -- how much backwards compatibility with external plugins is necessary, etc.