Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
43389849
Commit
43389849
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[MdR] proper error message with missing -mdr-out
parent
db604585
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/markdown-report/md_gen.ml
+12
-7
12 additions, 7 deletions
src/plugins/markdown-report/md_gen.ml
with
12 additions
and
7 deletions
src/plugins/markdown-report/md_gen.ml
+
12
−
7
View file @
43389849
...
@@ -609,10 +609,15 @@ let gen_report ~draft:is_draft () =
...
@@ -609,10 +609,15 @@ let gen_report ~draft:is_draft () =
in
in
let
doc
=
Markdown
.
pandoc
~
title
~
authors
?
date
elements
in
let
doc
=
Markdown
.
pandoc
~
title
~
authors
?
date
elements
in
let
file
=
Mdr_params
.
Output
.
get
()
in
let
file
=
Mdr_params
.
Output
.
get
()
in
try
if
Filepath
.
Normalized
.
is_empty
file
then
Command
.
print_file
(
file
:>
string
)
(
fun
fmt
->
Markdown
.
pp_pandoc
fmt
doc
)
;
Mdr_params
.
error
"No output file specified (use option %s)."
Mdr_params
.
result
"Report %a generated"
Filepath
.
Normalized
.
pretty
file
Mdr_params
.
Output
.
option_name
with
Sys_error
s
->
else
Mdr_params
.
warning
try
"Unable to open %a for writing (%s). No report generated"
Command
.
print_file
(
file
:>
string
)
Filepath
.
Normalized
.
pretty
file
s
(
fun
fmt
->
Markdown
.
pp_pandoc
fmt
doc
)
;
Mdr_params
.
result
"Report %a generated"
Filepath
.
Normalized
.
pretty
file
with
Sys_error
s
->
Mdr_params
.
warning
"Unable to open %a for writing (%s). No report generated"
Filepath
.
Normalized
.
pretty
file
s
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment