Prevent code injection in error declaration