29e78c add error messages into copy function

Authored and Committed by bw 4 years ago
    add error messages into copy function