add console.error on error
[Generating dist files]