fixed a typo
added an error message for when copying fails due to missing source
location.