Better error handling for --overwrite