Command encoder error message improvement

Show the actual command to help diagnose as the line number info is missing
This commit is contained in:
William S Fulton 2024-02-02 18:38:12 +00:00
parent 4cb2b253d0
commit dc11837c64
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
SWIG:EOF: Error: Command encoder no longer supported - use regex encoder instead.
SWIG:EOF: Error: Command encoder no longer supported - use regex encoder instead, command:sed -e 's//([a-z]/)//U/1/' -e 's//(_/)/([a-z]/)//U/2/g' <<<x

View File

@ -1033,7 +1033,7 @@ int Swig_scopename_check(const String *s) {
* ----------------------------------------------------------------------------- */
String *Swig_string_command(String *s) {
Swig_error("SWIG", Getline(s), "Command encoder no longer supported - use regex encoder instead.\n");
Swig_error("SWIG", Getline(s), "Command encoder no longer supported - use regex encoder instead, command:%s\n", s);
Exit(EXIT_FAILURE);
return 0;
}