Skip to content

Commit

Permalink
Per #2277, more consistent formatting of -> in the error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Nov 2, 2022
1 parent ca1e748 commit 05746d2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/basic/vx_config/config_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3127,10 +3127,10 @@ NormalizeType parse_conf_normalize(Dictionary *dict) {
///////////////////////////////////////////////////////////////////////////////

void python_compile_error(const char *caller) {
ConcatString cs;
if(caller) cs << caller << " -> ";

mlog << Error << "\n" << cs
const char *method_name = (0 != caller) ? caller : "python_compile_error() -> ";

mlog << Error << "\n" << method_name
<< "Support for Python has not been compiled!\n"
<< "To run Python scripts, recompile with the --enable-python option.\n\n";

Expand Down
2 changes: 1 addition & 1 deletion src/libcode/vx_data2d_factory/data2d_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ MetPythonDataFile * p = 0;
case FileType_Python_Numpy:
case FileType_Python_Xarray:

python_compile_error("Met2dDataFileFactory::new_met_2d_data_file()");
python_compile_error("Met2dDataFileFactory::new_met_2d_data_file() -> ");

#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libcode/vx_data2d_factory/var_info_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ VarInfo * VarInfoFactory::new_var_info(GrdFileType type)
p = 0;
break;
#else
python_compile_error("VarInfoFactory::new_var_info()");
python_compile_error("VarInfoFactory::new_var_info() -> ");
#endif

case FileType_NcCF:
Expand Down
2 changes: 1 addition & 1 deletion src/tools/other/ascii2nc/ascii2nc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ void set_format(const StringArray & a) {
}
#endif
else if("python" == a[0]) {
python_compile_error("set_format()");
python_compile_error("set_format() -> ");
}
else {
mlog << Error << "\nset_format() -> "
Expand Down

0 comments on commit 05746d2

Please sign in to comment.