apply astyle to changes, and init error correctly