print error

This commit is contained in:
msojocs 2024-07-06 22:53:50 +08:00
parent 89bc6eef86
commit 7a229660f0

View File

@ -35,7 +35,10 @@ const HTTP = {
});
res.on('end', () => {
// console.log('No more data in response.');
console.log('end:', ret?.substring(0, 10))
if (ret?.startsWith('server error'))
{
console.log('error:', ret)
}
if (compilerOptions.lazyloadConfig)
{
resolve(JSON.parse(ret))