jkaluza / odcs

Forked from odcs 6 years ago
Clone

2e707cc Refine error handler

Authored and Committed by cqi 6 years ago
    Refine error handler
    
    Add new handler to handle uncaught errors.
    
    Raise werkzeug.exceptions.BadRequest from view instead of ODCS' own.
    This results in badrequest_error is used correctly instead of using
    validationerror_error.
    
    Fixes #89
    
    Signed-off-by: Chenxiong Qi <cqi@redhat.com>
    
        
file modified
+12 -11
file modified
+2 -1
file modified
+31 -0