Mercurial > octave
changeset 30727:bfff3d523690 stable
oct-shlib.cc: Clarify error message if loading library failed.
* liboctave/util/oct-shlib.cc (octave_dlopen_shlib::octave_dlopen_shlib):
Include possible causes for library loading errors.
See: https://octave.discourse.group/t/2080/67
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 09 Feb 2022 19:38:49 +0100 |
parents | 0a082e1b7422 |
children | 3b0d041cd478 fee897477e3b |
files | liboctave/util/oct-shlib.cc |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/util/oct-shlib.cc Mon Feb 07 22:07:06 2022 +0100 +++ b/liboctave/util/oct-shlib.cc Wed Feb 09 19:38:49 2022 +0100 @@ -221,11 +221,13 @@ const char *msg = dlerror (); if (msg) - (*current_liboctave_error_handler) ("%s: failed to load: %s", - m_file.c_str (), msg); + (*current_liboctave_error_handler) + ("%s: failed to load\nIncompatible version or missing dependency?" + "\n%s", m_file.c_str (), msg); else - (*current_liboctave_error_handler) ("%s: failed to load", - m_file.c_str ()); + (*current_liboctave_error_handler) + ("%s: failed to load\nIncompatible version or missing dependency?", + m_file.c_str ()); } }