mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 03:11:38 +03:00
error text unified
This commit is contained in:
parent
43eab9a8ee
commit
2dd10a13bf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user