catch erros
This commit is contained in:
parent
85f350dea9
commit
30861621cf
@ -1,7 +1,11 @@
|
|||||||
const { execSync } = require("child_process");
|
const { execSync } = require("child_process");
|
||||||
|
|
||||||
export const cliTest = (args: any) => {
|
export const cliTest = (args: any) => {
|
||||||
return JSON.parse(execSync(`./bin/laconic cns ${args}`));
|
try{
|
||||||
|
return JSON.parse(execSync(`./bin/laconic cns ${args}`));
|
||||||
|
}catch(err){
|
||||||
|
return(err)
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export function createBond(type: string, quantity: string):string{
|
export function createBond(type: string, quantity: string):string{
|
||||||
|
Loading…
Reference in New Issue
Block a user