[enh] display extra message info about state

This commit is contained in:
2021-08-13 11:37:31 +02:00
parent 1eaf10b83e
commit 34b624bc5c
7 changed files with 42 additions and 17 deletions

View File

@@ -12,7 +12,8 @@ export function webappServe(watchers: Watcher[], host = 'localhost', port = 1050
res.send(watchers.map(watcher => {
return {
name: watcher.name,
state: watcher.state
state: watcher.state,
message: watcher.error,
}
}))
})