let txt = err.msg?.errors?.[0].includes("tra-ta-ta") ? "boom" : "problem";
console.log("txt =" + txt); /// problem