mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-01 21:02:33 +00:00
refactor: replace karma-go with standard error handling
This commit is contained in:
3
mark.go
3
mark.go
@@ -24,7 +24,6 @@ import (
|
||||
"github.com/kovetskiy/mark/v16/stdlib"
|
||||
"github.com/kovetskiy/mark/v16/types"
|
||||
"github.com/kovetskiy/mark/v16/vfs"
|
||||
"github.com/reconquest/karma-go"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
@@ -286,7 +285,7 @@ func ProcessFile(file string, api *confluence.API, config Config) (*confluence.P
|
||||
if meta != nil {
|
||||
parent, pg, err := page.ResolvePage(false, api, meta)
|
||||
if err != nil {
|
||||
return nil, karma.Describe("title", meta.Title).Reason(err)
|
||||
return nil, fmt.Errorf("error resolving page %q: %w", meta.Title, err)
|
||||
}
|
||||
|
||||
if pg == nil {
|
||||
|
||||
Reference in New Issue
Block a user