Skip to content

Commit

Permalink
Add verbose output for unhandled kind string, so we can handle more o…
Browse files Browse the repository at this point in the history
…f them
  • Loading branch information
AlexMoutonNoble committed Mar 29, 2024
1 parent 92d62dc commit 763bab0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/rescript-doc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6910,7 +6910,7 @@ function parse(str) {
/* Error */
1
),
_0: "invalid kind"
_0: "unhandled kind " + str
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nobleai/rescript-documentation",
"version": "0.7.1",
"version": "0.7.2",
"description": "NobleAI tool for generating rescript library documentation",
"repository": "https://github.com/noble-ai/rescript-prelude",
"author": "Alex Mouton ([email protected])",
Expand Down
3 changes: 1 addition & 2 deletions src/Doc.res
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module Md = {
let h1 = s => "# " ++ s ++ "\n"
let h2 = s => "## " ++ s ++ "\n"
let h3 = s => "### " ++ s ++ "\n"
let warning = s => `[!WARNING] ${s} [!WARNING]`

let block = (block, lines) => {
lines
Expand All @@ -31,7 +30,7 @@ module Kind = {
| "value" => Result.Ok(#value)
| "type" => Result.Ok(#"type")
| "module" => Result.Ok(#"module")
| _ => Result.Error("invalid kind")
| x => Result.Error(`unhandled kind ${x}`)
}
}
}
Expand Down

0 comments on commit 763bab0

Please sign in to comment.