Properly show electrostatic fail msg in do_alter, not do_trigger

Fixes issue #327.