Fix path of ladish log file that is announced when error occures

This commit is contained in:
Nedko Arnaudov 2010-10-19 23:48:21 +03:00
parent c5b384a80e
commit 45c73b34ac
4 changed files with 6 additions and 4 deletions

View File

@ -915,7 +915,7 @@ static bool run(void * command_context)
log_error("XML_ParseBuffer() failed.");
}
ladish_notify_simple(LADISH_NOTIFY_URGENCY_HIGH, "Studio load failed", "Please inspect the ladishd log (~/.ladish/ladish.log) for more info");
ladish_notify_simple(LADISH_NOTIFY_URGENCY_HIGH, "Studio load failed", LADISH_CHECK_LOG_TEXT);
ladish_studio_clear();
XML_ParserFree(parser);
close(fd);
@ -928,7 +928,7 @@ static bool run(void * command_context)
if (parse_context.error)
{
ladish_studio_clear();
ladish_notify_simple(LADISH_NOTIFY_URGENCY_HIGH, "Studio load failed", "Please inspect the ladishd log (~/.ladish/ladish.log) for more info");
ladish_notify_simple(LADISH_NOTIFY_URGENCY_HIGH, "Studio load failed", LADISH_CHECK_LOG_TEXT);
return false;
}

View File

@ -449,7 +449,7 @@ free_filenames:
exit:
if (!ret)
{
ladish_notify_simple(LADISH_NOTIFY_URGENCY_HIGH, "Studio save failed", "Please inspect the ladishd log (~/.ladish/ladish.log) for more info");
ladish_notify_simple(LADISH_NOTIFY_URGENCY_HIGH, "Studio save failed", LADISH_CHECK_LOG_TEXT);
}
return ret;

View File

@ -38,6 +38,8 @@
#define BASE_DIR "/." BASE_NAME
extern char * g_base_dir;
#define LADISH_CHECK_LOG_TEXT "Please inspect the ladishd log (~/.log/ladish/ladish.log) for more info"
/* connection between two ports */
/* virtual connection is connection where at least one the ports is virtual */
/* superconnection is connection that implements virtual connection chain at JACK level */

View File

@ -753,7 +753,7 @@ exit:
if (!ret)
{
ladish_room_unload_project(room_handle);
ladish_notify_simple(LADISH_NOTIFY_URGENCY_HIGH, "Project load failed", "Please inspect the ladishd log (~/.ladish/ladish.log) for more info");
ladish_notify_simple(LADISH_NOTIFY_URGENCY_HIGH, "Project load failed", LADISH_CHECK_LOG_TEXT);
}
return ret;