From c633a29a391c8797ace9ebb838390b318e8c91a9 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 13 Jan 2016 09:42:03 -0300 Subject: improve reporting of error in wrong inheritance for autoload script --- drivers/unix/os_unix.cpp | 4 ++-- main/main.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 8e3fba167f..a004a116e0 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -78,11 +78,11 @@ void OS_Unix::print_error(const char* p_function,const char* p_file,int p_line,c break; case ERR_WARNING: print("\E[1;33mWARNING: %s: \E[0m\E[1m%s\n",p_function,err_details); - print("\E[0;33m At: %s:%i.\E[0m\n",p_file,p_line); + print("\E[0;33m At: %s:%i.\E[0m\n",p_file,p_line); break; case ERR_SCRIPT: print("\E[1;35mSCRIPT ERROR: %s: \E[0m\E[1m%s\n",p_function,err_details); - print("\E[0;35m At: %s:%i.\E[0m\n",p_file,p_line); + print("\E[0;35m At: %s:%i.\E[0m\n",p_file,p_line); break; } } diff --git a/main/main.cpp b/main/main.cpp index 8736166b68..f9bf406724 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1374,12 +1374,13 @@ bool Main::start() { } else if (res->is_type("Script")) { Ref