From 2dd10a13bf34841fe0cdacad07d9f6942f4a3e49 Mon Sep 17 00:00:00 2001 From: feruz Date: Tue, 17 Dec 2019 08:36:34 +0200 Subject: [PATCH] error text unified --- src/providers/steem/dsteem.js | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/providers/steem/dsteem.js b/src/providers/steem/dsteem.js index 23d14b30e..229fed57d 100644 --- a/src/providers/steem/dsteem.js +++ b/src/providers/steem/dsteem.js @@ -281,7 +281,7 @@ export const ignoreUser = async (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; /** @@ -514,7 +514,7 @@ const _vote = async (currentAccount, pin, author, permlink, weight) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; /** @@ -562,7 +562,7 @@ export const transferToken = (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const transferToSavings = (currentAccount, pin, data) => { @@ -596,7 +596,7 @@ export const transferToSavings = (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const transferFromSavings = (currentAccount, pin, data) => { @@ -630,7 +630,7 @@ export const transferFromSavings = (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const transferToVesting = (currentAccount, pin, data) => { @@ -662,7 +662,7 @@ export const transferToVesting = (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const withdrawVesting = (currentAccount, pin, data) => { @@ -693,7 +693,7 @@ export const withdrawVesting = (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const delegateVestingShares = (currentAccount, pin, data) => { @@ -725,7 +725,7 @@ export const delegateVestingShares = (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const setWithdrawVestingRoute = (currentAccount, pin, data) => { @@ -758,7 +758,7 @@ export const setWithdrawVestingRoute = (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const getWithdrawRoutes = account => @@ -805,7 +805,7 @@ export const followUser = async (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const unfollowUser = async (currentAccount, pin, data) => { @@ -850,7 +850,7 @@ export const unfollowUser = async (currentAccount, pin, data) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const lookupAccounts = async username => { @@ -1014,7 +1014,7 @@ const _postContent = async ( }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; // Re-blog @@ -1061,7 +1061,7 @@ const _reblog = async (account, pinCode, author, permlink) => { return client.broadcast.json(json, privateKey); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const claimRewardBalance = (account, pinCode, rewardSteem, rewardSbd, rewardVests) => { @@ -1095,7 +1095,7 @@ export const claimRewardBalance = (account, pinCode, rewardSteem, rewardSbd, rew return client.broadcast.sendOperations(opArray, privateKey); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const transferPoint = (currentAccount, pinCode, data) => { @@ -1123,7 +1123,7 @@ export const transferPoint = (currentAccount, pinCode, data) => { return client.broadcast.json(op, privateKey); } - return Promise.reject(new Error('Something went wrong, Active Key required!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const promote = (currentAccount, pinCode, duration, permlink, author) => { @@ -1149,7 +1149,7 @@ export const promote = (currentAccount, pinCode, duration, permlink, author) => return client.broadcast.json(json, privateKey); } - return Promise.reject(new Error('Something went wrong, Active Key required!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const boost = (currentAccount, pinCode, point, permlink, author) => { @@ -1175,7 +1175,7 @@ export const boost = (currentAccount, pinCode, point, permlink, author) => { return client.broadcast.json(json, privateKey); } - return Promise.reject(new Error('Something went wrong, Active Key required!')); + return Promise.reject(new Error('Private key permission issue!')); }; export const profileUpdate = async (params, pin, currentAccount) => { @@ -1231,7 +1231,7 @@ export const profileUpdate = async (params, pin, currentAccount) => { }); } - return Promise.reject(new Error('You dont have permission!')); + return Promise.reject(new Error('Private key permission issue!')); }; // HELPERS