Fix error handling
This commit is contained in:
parent
fba2a0f6f7
commit
7259fe5348
|
@ -65,14 +65,17 @@ sub update_query($c, $query) {
|
|||
$app_name = $meta->{app_name};
|
||||
};
|
||||
|
||||
$c->render(status => 400, openapi =>{
|
||||
error => {
|
||||
reason => "INVALID_PARAM",
|
||||
details => "Parameter 'meta' is invalid.",
|
||||
},
|
||||
}) if $@;
|
||||
if ($@) {
|
||||
$c->render(status => 400, openapi =>{
|
||||
error => {
|
||||
reason => "INVALID_PARAM",
|
||||
details => "Parameter 'meta' is invalid.",
|
||||
},
|
||||
});
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
# Not supporting meta.
|
||||
|
|
Loading…
Reference in New Issue