Skip to content

Conversation

@kurkomisi
Copy link
Contributor

This PR contains the handling of the JS console errors thrown during the evaluation of the welcome message of the geth console.

@kurkomisi kurkomisi changed the title console: handle welcome message error console: run welcome message commands individually Apr 2, 2019
}
sort.Strings(modules)
fmt.Fprintln(c.printer, " modules:", strings.Join(modules, " "))
fmt.Fprintln(c.printer, "modules: ", strings.Join(modules, " "))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was aligned, please revert.

`console.log("instance: " + web3.version.node);`,
`console.log("coinbase: " + eth.coinbase);`,
`console.log("at block: " + eth.blockNumber + " (" + new Date(1000 * eth.getBlock(eth.blockNumber).timestamp) + ")");`,
`console.log("datadir: " + admin.datadir);`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was aligned, please revert.

`console.log("datadir: " + admin.datadir);`,
} {
c.jsre.Run(command)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a reason to run commands one-by-one, it's a programming language, lets make it work in js.

@karalabe
Copy link
Member

karalabe commented Apr 2, 2019

Superseded by #19374

@karalabe karalabe closed this Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants