Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
caisar
Commits
f57b35e8
Commit
f57b35e8
authored
2 weeks ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
Rework some user error messages.
parent
e9e4bb83
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main.ml
+1
-1
1 addition, 1 deletion
src/main.ml
src/verification_types.ml
+6
-6
6 additions, 6 deletions
src/verification_types.ml
with
7 additions
and
7 deletions
src/main.ml
+
1
−
1
View file @
f57b35e8
...
...
@@ -150,7 +150,7 @@ let verify_json ?memlimit ?timelimit ?outfile json =
match
query
.
output_file
with
|
None
->
Logging
.
code_error
~
src
:
Logs
.
default
(
fun
m
->
m
"No output file
foun
d to record verification results"
)
m
"No output file
specifie
d to record verification results"
)
|
Some
outfile
->
outfile
in
record_verification_result
verification_results
outfile
...
...
This diff is collapsed.
Click to expand it.
src/verification_types.ml
+
6
−
6
View file @
f57b35e8
...
...
@@ -133,11 +133,11 @@ module Query = struct
match
of_yojson
(
Yojson
.
Safe
.
from_file
s
)
with
|
Ok
t
->
t
|
Error
msg
->
invalid_arg
(
Fmt
.
str
"Unrecognized JSON configuration in file '%s' (%s)"
s
msg
)
Logging
.
user_error
(
fun
m
->
m
"Unrecognized JSON configuration in file '%s' (%s)"
s
msg
)
|
exception
Yojson
.
Json_error
msg
->
failwith
(
Fmt
.
str
"Unexpected error while parsing JSON file '%s' (%s)"
s
msg
)
Logging
.
user_error
(
fun
m
->
m
"Unexpected error while parsing JSON file '%s' (%s)"
s
msg
)
in
let
query
=
(* Precedence to the command line option, if any. *)
...
...
@@ -160,8 +160,8 @@ module Query = struct
|
None
->
Logging
.
user_error
(
fun
m
->
m
"@[No output file while creating verification query from
JSON
\
file@]"
))
"@[No output file
specified
while creating verification query from \
JSON
file@]"
))
|
Some
_
as
output_file
->
{
query
with
output_file
}
let
pretty
fmt
=
Fmt
.
fmt
"%a"
fmt
pp
...
...
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