[core][js] log error with helpers