mirror of
https://github.com/kovetskiy/mark.git
synced 2025-11-01 12:27:35 +08:00
Undo unrelated formatting changes
This commit is contained in:
parent
0f13d249f5
commit
f6b63aab86
10
util/cli.go
10
util/cli.go
@ -132,10 +132,7 @@ func processFile(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if pageID == "" && meta == nil {
|
if pageID == "" && meta == nil {
|
||||||
fatalErrorHandler.Handle(
|
fatalErrorHandler.Handle(nil, "specified file doesn't contain metadata and URL is not specified via command line or doesn't contain pageId GET-parameter")
|
||||||
nil,
|
|
||||||
"specified file doesn't contain metadata and URL is not specified via command line or doesn't contain pageId GET-parameter",
|
|
||||||
)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,10 +143,7 @@ func processFile(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if meta.Title == "" {
|
if meta.Title == "" {
|
||||||
fatalErrorHandler.Handle(
|
fatalErrorHandler.Handle(nil, "page title is not set: use the 'Title' header, or the --title-from-h1 / --title-from-filename flags")
|
||||||
nil,
|
|
||||||
"page title is not set: use the 'Title' header, or the --title-from-h1 / --title-from-filename flags",
|
|
||||||
)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user