* 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:
Axel Dörfler
2009-01-11 14:22:49 +00:00
parent 99fe8fb0f6
commit f5c4a08357
+3 -8
View File
@@ -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;
} }