Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private bool ValidateBasicUrl(LinkInline link, InlineProcessor processor, string
{
if (string.IsNullOrEmpty(url))
{
processor.EmitWarning(link, "Found empty url");
processor.EmitError(link, "Found empty url");
return false;
}

Expand Down
6 changes: 3 additions & 3 deletions tests/authoring/Inline/InlineLinks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type ``inline link with mailto not allowed external host`` () =
let ``has no errors`` () = markdown |> hasNoErrors

[<Fact>]
let ``has warning`` () = markdown |> hasWarning "mailto links should be to elastic.co domains."
let ``has error`` () = markdown |> hasWarning "mailto links should be to elastic.co domains."

type ``empty link should result in an error`` () =

Expand All @@ -54,7 +54,7 @@ type ``empty link should result in an error`` () =
"""

[<Fact>]
let ``should warn`` () = markdown |> hasWarning "Found empty url"
let ``has error`` () = markdown |> hasError "Found empty url"

[<Fact>]
let ``has no erros`` () = markdown |> hasNoErrors
let ``has no warnings`` () = markdown |> hasNoWarnings