diff options
author | Alastair M. Robinson <robinsonb5@gmail.com> | 2022-05-16 20:22:28 +0100 |
---|---|---|
committer | Alastair M. Robinson <robinsonb5@gmail.com> | 2022-05-16 20:22:28 +0100 |
commit | 6c6017c97374d0c0c01b87f1ce960ee9316a81b2 (patch) | |
tree | d510bd17d2ab194bb557b48ce613fef140501daa | |
parent | 83dbea1689bd0efd5645cf75b40aa4cec430fc90 (diff) | |
download | yosys-6c6017c97374d0c0c01b87f1ce960ee9316a81b2.tar.gz yosys-6c6017c97374d0c0c01b87f1ce960ee9316a81b2.tar.bz2 yosys-6c6017c97374d0c0c01b87f1ce960ee9316a81b2.zip |
Use log_warning when Tcl_Init fails, report error with Tcl_ErrnoMsg.
-rw-r--r-- | kernel/yosys.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 6ab283148..4e1a3ca7e 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -734,7 +734,7 @@ extern Tcl_Interp *yosys_get_tcl_interp() if (yosys_tcl_interp == NULL) { yosys_tcl_interp = Tcl_CreateInterp(); if (Tcl_Init(yosys_tcl_interp)!=TCL_OK) - log("Tcl_Init() call failed\n"); + log_warning("Tcl_Init() call failed - %s\n",Tcl_ErrnoMsg(Tcl_GetErrno())); Tcl_CreateCommand(yosys_tcl_interp, "yosys", tcl_yosys_cmd, NULL, NULL); } return yosys_tcl_interp; |