Applied patch inserting newlines in error message. Closes #7953. Thanks diver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42902 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -141,7 +141,7 @@ MainWindow::MessageReceived(BMessage* message)
|
|||||||
status_t ret = be_roster->Launch(button->Ref());
|
status_t ret = be_roster->Launch(button->Ref());
|
||||||
if (ret < B_OK && ret != B_ALREADY_RUNNING) {
|
if (ret < B_OK && ret != B_ALREADY_RUNNING) {
|
||||||
BString errStr(B_TRANSLATE("Failed to launch '%1'.\n"
|
BString errStr(B_TRANSLATE("Failed to launch '%1'.\n"
|
||||||
"\nError: "));
|
"\nError:"));
|
||||||
BPath path(button->Ref());
|
BPath path(button->Ref());
|
||||||
if (path.InitCheck() >= B_OK)
|
if (path.InitCheck() >= B_OK)
|
||||||
errStr.ReplaceFirst("%1", path.Path());
|
errStr.ReplaceFirst("%1", path.Path());
|
||||||
@@ -156,8 +156,8 @@ MainWindow::MessageReceived(BMessage* message)
|
|||||||
if (!launchedByRef && button->AppSignature()) {
|
if (!launchedByRef && button->AppSignature()) {
|
||||||
status_t ret = be_roster->Launch(button->AppSignature());
|
status_t ret = be_roster->Launch(button->AppSignature());
|
||||||
if (ret != B_OK && ret != B_ALREADY_RUNNING) {
|
if (ret != B_OK && ret != B_ALREADY_RUNNING) {
|
||||||
BString errStr(B_TRANSLATE("Failed to launch application "
|
BString errStr(B_TRANSLATE("\n\nFailed to launch application "
|
||||||
"with signature '%2'.\n\nError: "));
|
"with signature '%2'.\n\nError:"));
|
||||||
errStr.ReplaceFirst("%2", button->AppSignature());
|
errStr.ReplaceFirst("%2", button->AppSignature());
|
||||||
errorMessage << errStr.String() << " ";
|
errorMessage << errStr.String() << " ";
|
||||||
errorMessage << strerror(ret);
|
errorMessage << strerror(ret);
|
||||||
|
|||||||
Reference in New Issue
Block a user