Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
fd2f7920
Commit
fd2f7920
authored
Nov 22, 2016
by
Maximilien Colange
Browse files
Improve error messages when loading compiled models.
* spot/ltsmin/ltsmin.cc: Improve error messages.
parent
c9aabcdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
spot/ltsmin/ltsmin.cc
View file @
fd2f7920
...
...
@@ -1017,9 +1017,10 @@ namespace spot
lt_dlhandle
h
=
lt_dlopen
(
file
.
c_str
());
if
(
!
h
)
{
std
::
string
lt_error
=
lt_dlerror
();
lt_dlexit
();
throw
std
::
runtime_error
(
std
::
string
(
"Failed to load '"
)
+
file
+
"'.
"
);
+
file
+
"'.
\n
"
+
lt_error
);
}
auto
d
=
std
::
make_shared
<
spins_interface
>
();
...
...
@@ -1106,7 +1107,7 @@ namespace spot
&&
d
->
get_type_name
&&
d
->
get_type_value_count
&&
d
->
get_type_value_name
))
throw
std
::
runtime_error
(
std
::
string
(
"Failed resolve some symbol"
throw
std
::
runtime_error
(
std
::
string
(
"Failed
to
resolve some symbol
"
"while loading '"
)
+
file
+
"'."
);
if
(
d
->
have_property
&&
d
->
have_property
())
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment