While merrily screwcutting on my mini lathe this afternoon, one hand on the handwheels, one on the electrical controls, I was treated to a healthy zap

of mains electricity. It didn't last long, because it tripped the RCCB through which I power it. However, I was moved to express a modicum of surprise, and reflected that RCCBs were a good thing if one did not want to fry like an electric pickle (e.g.
).
I take a pretty dim view of stuff that tries to kill me, so a rapid investigation ensued. Anyone with a lathe having an electrical control panel like this might do well to check for similar dangerous construction.

Note the metal switch handle, and aluminium panel (with worn paint).
Internally, there is no attempt to earth the metal parts, and take a look at the lower blue wire soldered to the speed pot:

How close is that to the metalwork of the switch? Much too close. The pointer below shows where a tiny movement of either switch or pot can put a zapworthy voltage on the switch frame, and thus on both the switch handle and the metal panel.

Yow! So now I have not only to correct the slapdash wiring, but I think also check the electronics, as it doesn't seem right any more.
Mark