*Ensure we don't store an error inside the data property
This commit is contained in:
parent
40cf1ff9e9
commit
7a21a5069c
|
@ -66,9 +66,11 @@ export default class WisdomRpcQuery extends RpcQueryBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
response = { error: ERR_MAX_TRIES_HIT };
|
response = { error: ERR_MAX_TRIES_HIT };
|
||||||
|
} else {
|
||||||
|
response = { data: response };
|
||||||
}
|
}
|
||||||
|
|
||||||
this.resolve({ data: response });
|
this.resolve(response);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue