Report correct location if local.hex failed

Fixes #2765.
Should we pass the target directly instead of making it an option?