Make error variable a volatile-mutable

Explanation in comments
Fix whitespace errors