Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): correct wording for channel open/close error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 10, 2020
1 parent c278f3a commit 626ba70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions renderer/reducers/channels/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export const pushchannelerror = ({ nodePubkey, error }) => dispatch => {
{ payload: { pubkey: nodePubkey } },
{
variant: 'error',
message: `Unable to open channel: ${error}`,
message: error,
isProcessing: false,
}
)
Expand Down Expand Up @@ -440,7 +440,7 @@ export const openChannel = data => async (dispatch, getState) => {
} catch (e) {
dispatch(
pushchannelerror({
error: e.message,
error: `Unable to open channel: ${e.message}`,
nodePubkey: e.payload.nodePubkey,
})
)
Expand All @@ -462,7 +462,7 @@ export const closeChannel = () => async (dispatch, getState) => {

const [fundingTxid, outputIndex] = channelPoint.split(':')

// Attempt to open the channel.
// Attempt to close the channel.
try {
const data = await grpc.services.Lightning.closeChannel({
channelPoint: {
Expand All @@ -476,7 +476,7 @@ export const closeChannel = () => async (dispatch, getState) => {
} catch (e) {
dispatch(
pushchannelerror({
error: e.message,
error: `Unable to close channel: ${e.message}`,
nodePubkey: e.payload.nodePubkey,
})
)
Expand Down

0 comments on commit 626ba70

Please sign in to comment.