macro processor: fix bug in file reported when error encountered after a file has been included

closes #42
6 jobs for master in 3 minutes and 23 seconds (queued for 1 minute and 3 seconds)
Status Job ID Name Coverage
  Build
passed #14585
build_linux_32

00:01:10

passed #14586
build_linux_64

00:01:55

passed #14589
macOS
build_macOS

00:02:59

passed #14587
build_windows_32

00:01:38

passed #14588
build_windows_64

00:01:40

 
  Prepare
passed #14590
aggregate_builds

00:00:04