* 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.
|
||||
*
|
||||
* Authors:
|
||||
@@ -780,15 +780,10 @@ StyledEditWindow::Save(BMessage *message)
|
||||
}
|
||||
|
||||
if (status != B_OK) {
|
||||
BString alertText;
|
||||
if (status == B_TRANSLATION_ERROR_BASE)
|
||||
alertText.SetTo("Translation error saving \"");
|
||||
else
|
||||
alertText.SetTo("Unknown error saving \"");
|
||||
BString alertText("Error saving \"");
|
||||
alertText << name << "\":\n" << strerror(status);
|
||||
|
||||
alertText << name << "\".";
|
||||
_ShowAlert(alertText, "OK", "", "", B_STOP_ALERT);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user