29e78c add error messages into copy function

Authored and Committed by Ivan Mahonin 5 years ago
    add error messages into copy function