From 09370ae456395ca52b489e147b805e23df9ed85a Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 18 May 2020 06:10:07 +0100 Subject: [PATCH] Change an error message Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginVST2.cpp | 2 +- source/utils/CarlaUtils.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/backend/plugin/CarlaPluginVST2.cpp b/source/backend/plugin/CarlaPluginVST2.cpp index 65eadb80d..ef237af5d 100644 --- a/source/backend/plugin/CarlaPluginVST2.cpp +++ b/source/backend/plugin/CarlaPluginVST2.cpp @@ -1917,7 +1917,7 @@ protected: if (pData->param.count == 0) break; } else { - CARLA_SAFE_ASSERT_BREAK(pData->enabled); + CARLA_CUSTOM_SAFE_ASSERT_BREAK("audioMasterAutomate while disabled", pData->enabled); } // plugins should never do this: diff --git a/source/utils/CarlaUtils.hpp b/source/utils/CarlaUtils.hpp index 5360da416..303f23577 100644 --- a/source/utils/CarlaUtils.hpp +++ b/source/utils/CarlaUtils.hpp @@ -1,6 +1,6 @@ /* * Carla common utils - * Copyright (C) 2011-2016 Filipe Coelho + * Copyright (C) 2011-2020 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -258,7 +258,7 @@ static inline void carla_custom_safe_assert(const char* const message, const char* const assertion, const char* const file, const int line) noexcept { - carla_stderr2("%s, condition \"%s\" in file %s, line %i", message, assertion, file, line); + carla_stderr2("Carla assertion failure: %s, condition \"%s\" in file %s, line %i", message, assertion, file, line); } // --------------------------------------------------------------------------------------------------------------------