fix: show resp code
This commit is contained in:
parent
9c111e5b06
commit
f8c5754072
|
@ -146,14 +146,14 @@ export default class RemoteInvoke {
|
|||
|
||||
if (resp?.err) {
|
||||
this.showLog(resp.headers['x-fc-log-result']);
|
||||
logger.log(`\nFC Invoke Result[code: ${resp.code}]:`, 'red');
|
||||
logger.log(`\nFC Invoke Result[Code: ${resp.code}]:`, 'red');
|
||||
console.log(resp.data);
|
||||
console.log('\n');
|
||||
} else {
|
||||
if (resp) {
|
||||
this.showLog(resp.headers['x-fc-log-result']);
|
||||
|
||||
logger.log('\nFC Invoke Result[code: ${resp.code}]:', 'green');
|
||||
logger.log(`\nFC Invoke Result[Code: ${resp.code}]:`, 'green');
|
||||
console.log(resp.data);
|
||||
console.log('\n');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue