mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
1 parent
f273c4b9ca
commit
2fdb6b7460
1 file changed
+5
-8
@@ -131,15 +131,12 @@ Meteor.methods({
|
||||
/**
|
||||
* From Methods, Meteor.Error section
|
||||
*/
|
||||
if (Math.random() < 0.5) {
|
||||
throw new Meteor.Error("logged-out",
|
||||
"The user must be logged in to post a comment.");
|
||||
}
|
||||
throw new Meteor.Error("logged-out",
|
||||
"The user must be logged in to post a comment.");
|
||||
|
||||
throw new Meteor.Error(403,
|
||||
"The user must be logged in to post a comment.");
|
||||
|
||||
if (Math.random() < 0.5) {
|
||||
throw new Meteor.Error(403,
|
||||
"The user must be logged in to post a comment.");
|
||||
}
|
||||
|
||||
Meteor.call("methodName", function (error: Meteor.Error) {
|
||||
if (error.error === "logged-out") {
|
||||
|
||||
Reference in new issue
Block a user