mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-08 08:27:43 +02:00
... Unnecessary because transitively included. But each .cpp file still includes its own .h file near the top to ensure that it compiles indenendently, even if it is reincluded transitively later.
37 lines
840 B
C++
37 lines
840 B
C++
//
|
|
// InconsistencyException.cpp
|
|
//
|
|
//
|
|
// Created by Paul Licameli on 11/27/16.
|
|
//
|
|
//
|
|
|
|
#include "Audacity.h"
|
|
#include "InconsistencyException.h"
|
|
|
|
InconsistencyException::~InconsistencyException()
|
|
{
|
|
}
|
|
|
|
wxString InconsistencyException::ErrorMessage() const
|
|
{
|
|
// Shorten the path
|
|
wxString path { file };
|
|
auto sub = wxString{ wxFILE_SEP_PATH } + "src" + wxFILE_SEP_PATH;
|
|
auto index = path.Find(sub);
|
|
if (index != wxNOT_FOUND)
|
|
path = path.Mid(index + sub.size());
|
|
|
|
#ifdef __func__
|
|
return wxString::Format(
|
|
_("Internal error in %s at %s line %d.\nPlease inform the Audacity team at https://forum.audacityteam.org/."),
|
|
func, path, line
|
|
);
|
|
#else
|
|
return wxString::Format(
|
|
_("Internal error at %s line %d.\nPlease inform the Audacity team at https://forum.audacityteam.org/."),
|
|
path, line
|
|
);
|
|
#endif
|
|
}
|