put back errors in scripting replies : it's part of the BeOS behavior
MethodReplicant is now working again. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
dd24c10596
commit
c7580d1694
@ -561,7 +561,6 @@ BShelf::MessageReceived(BMessage *msg)
|
||||
|
||||
if (err < B_OK) {
|
||||
replyMsg.what = B_MESSAGE_NOT_UNDERSTOOD;
|
||||
replyMsg.AddInt32("error", err);
|
||||
|
||||
if (err == B_BAD_SCRIPT_SYNTAX)
|
||||
replyMsg.AddString("message", "Didn't understand the specifier(s)");
|
||||
@ -569,6 +568,7 @@ BShelf::MessageReceived(BMessage *msg)
|
||||
replyMsg.AddString("message", strerror(err));
|
||||
}
|
||||
|
||||
replyMsg.AddInt32("error", err);
|
||||
msg->SendReply(&replyMsg);
|
||||
}
|
||||
|
||||
|
@ -3679,7 +3679,6 @@ BView::ResolveSpecifier(BMessage *msg, int32 index, BMessage *specifier,
|
||||
|
||||
if (err < B_OK) {
|
||||
replyMsg.what = B_MESSAGE_NOT_UNDERSTOOD;
|
||||
replyMsg.AddInt32("error", err);
|
||||
|
||||
if (err == B_BAD_SCRIPT_SYNTAX)
|
||||
replyMsg.AddString("message", "Didn't understand the specifier(s)");
|
||||
@ -3687,6 +3686,7 @@ BView::ResolveSpecifier(BMessage *msg, int32 index, BMessage *specifier,
|
||||
replyMsg.AddString("message", strerror(err));
|
||||
}
|
||||
|
||||
replyMsg.AddInt32("error", err);
|
||||
msg->SendReply(&replyMsg);
|
||||
return NULL;
|
||||
}
|
||||
@ -3805,7 +3805,6 @@ BView::MessageReceived(BMessage *msg)
|
||||
|
||||
if (err < B_OK) {
|
||||
replyMsg.what = B_MESSAGE_NOT_UNDERSTOOD;
|
||||
replyMsg.AddInt32("error", err);
|
||||
|
||||
if (err == B_BAD_SCRIPT_SYNTAX)
|
||||
replyMsg.AddString("message", "Didn't understand the specifier(s)");
|
||||
@ -3813,6 +3812,7 @@ BView::MessageReceived(BMessage *msg)
|
||||
replyMsg.AddString("message", strerror(err));
|
||||
}
|
||||
|
||||
replyMsg.AddInt32("error", err);
|
||||
msg->SendReply(&replyMsg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user