pull rpc error handling for importprivkey from litecoin
https://github.com/litecoin-project/litecoin/commit/dab55190ece3770d2cb6336a29d7308d1ab2e917
https://github.com/litecoin-project/litecoin/commit/7e1d5ca8944ec6b129244206860c39454dd03ec0