Report correct location if local.hex failed

Fixes #2765.