forked from MapComplete/MapComplete
UX: add 'show nearby picture' in new point popup
This commit is contained in:
parent
d56cf56511
commit
dad9bb1349
8 changed files with 37 additions and 24 deletions
|
@ -15,17 +15,18 @@ export default abstract class Script {
|
|||
args.splice(0, 2)
|
||||
const start = new Date()
|
||||
this.main(args)
|
||||
.then((_) => {
|
||||
.catch((e) => {
|
||||
console.log(`ERROR in script ${process.argv[1]}:`, e)
|
||||
process.exit(1)
|
||||
})
|
||||
.then(() => {
|
||||
const end = new Date()
|
||||
const millisNeeded = end.getTime() - start.getTime()
|
||||
|
||||
const green = (s) => "\x1b[92m" + s + "\x1b[0m"
|
||||
console.log(green("All done! (" + millisNeeded + " ms)"))
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(`ERROR in script ${process.argv[1]}:`, e)
|
||||
process.exit(1)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
public printHelp() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue