i’m experiencing problems with the Accounts.setUsername function. Whenever i try to set the username of a user and the username is not already in use it works just fine. But when it is already in use the method just aborts. No error is thrown and the script just stops.
A short example
const username = "chris"; const id = "aaa12345"; Accounts.setUsername(id, username); console.log("done");
when “chris” is not already in use it will be set correctly and then print “done”.
when “chris” is already in use it will do nothing and “done” is not printed.
The docs say the function will fail in the case of an existing username but how am i supposed to know whether it did? http://docs.meteor.com/api/passwords.html#Accounts-setUsername
Am i overlooking something?
meteor is at 18.104.22.168
accounts-base is at 1.2.14
any help would be greatly appreciated