Adding mainScene filename to error message in expandLink

This did require making expandLink non-static, but its a private method that apparently didn't need to be static, so I don't mind the change for the benefit of a more useful error message.