Move review actions into the platform, emit events on change
Still not seeing updates in the sidebar, however.
This commit is contained in:
parent
954a4330ee
commit
ee61b6d24b
6 changed files with 181 additions and 133 deletions
14
platform/error.go
Normal file
14
platform/error.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package platform
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type ErrorNotFound struct {
|
||||
message string
|
||||
}
|
||||
|
||||
func (e ErrorNotFound) Error() string { return fmt.Sprintf("not found: %s", e.message) }
|
||||
func newNotFound(format string, m ...any) error {
|
||||
return &ErrorNotFound{message: fmt.Sprintf(format, m...)}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue