mirror of
https://github.com/gusaul/grpcox.git
synced 2024-12-25 09:50:10 +00:00
Fixed behaviour then describe of procedure is required for making request. If describe got error anyway generate empty data editor box.
Describe can got error if grpc-server cant reflect request messages, e.g. actual python's `Symbol not found` error.
This commit is contained in:
parent
6feae4127c
commit
4c5a97cd85
|
@ -131,8 +131,13 @@ $('#select-function').change(function(){
|
|||
method: "GET",
|
||||
success: function(res){
|
||||
if (res.error) {
|
||||
alert(res.error);
|
||||
return;
|
||||
// on error generate empty editor. Fail of reflection should not interrupt request try.
|
||||
console.log("Cant describe "+selected+" procedure: ", res.error)
|
||||
res.data = {
|
||||
template: "",
|
||||
schema: ""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
generate_editor(res.data.template);
|
||||
|
|
Loading…
Reference in New Issue
Block a user