let packhouse = new Packhouse()
let group = {
tools: {
demo: {
handler(self) {
self.error('error')
}
}
}
}
packhouse.addGroup('demo', () => {
return {
data: group
}
})
packhouse.interceptError(error => {
return {
error,
isPackhouse: true
}
})
packhouse.tool('demo/demo').action(error => {
console.log(error.error) // error
console.log(error.isPackhouse) // true
})