* Actually show the error that happened - are we Windows or what?
* Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28880 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2008, Haiku, Inc. All Rights Reserved.
|
* Copyright 2002-2009, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -780,15 +780,10 @@ StyledEditWindow::Save(BMessage *message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (status != B_OK) {
|
if (status != B_OK) {
|
||||||
BString alertText;
|
BString alertText("Error saving \"");
|
||||||
if (status == B_TRANSLATION_ERROR_BASE)
|
alertText << name << "\":\n" << strerror(status);
|
||||||
alertText.SetTo("Translation error saving \"");
|
|
||||||
else
|
|
||||||
alertText.SetTo("Unknown error saving \"");
|
|
||||||
|
|
||||||
alertText << name << "\".";
|
|
||||||
_ShowAlert(alertText, "OK", "", "", B_STOP_ALERT);
|
_ShowAlert(alertText, "OK", "", "", B_STOP_ALERT);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user