Open closetcodebrews opened 3 years ago
While waiting for some suggestions, I reviewed the gulp-spsync-creds test.js file ... to see how you are testing your own code.
Hi @closetcodebrews, it has been a while since I've used this gulp extension. Try to turn on the verbose logging option to get more information about what the plugin tries to do. Also check the special characters in the password. Some of them could cause issues when not escaped properly.
Hi @closetcodebrews, it has been a while since I've used this gulp extension. Try to turn on the verbose logging option to get more information about what the plugin tries to do. Also check the special characters in the password. Some of them could cause issues when not escaped properly.
howdy! no worries. I understand what it's like jumping between projects. Verbose logging is on. but it's not an issue with a typo. I am purposely trying to catch the error when an incorrect account is used. Apparently, the end users want the code to handle this scenario gracefully because it happens often enough. Hope this clarifies the use case I'm trying to build. Maybe if you could just show me how you would catch errors in general for the code, that might be helpful?
I would like to request help in improving this code so it catches specific errors.
I've deliberately passed an incorrect username to the spsync method... and the gulp script blows up with an appropriate Authentication error that says the user account doesn't exist. But I'd like to catch this specific error, and have the code move on to the next package that I'm trying to upload. (this method is called within a loop...)
I've tried .on("error") in a few spots. but nothing is working.
Here's my code:
Output
Version information:
When I upgrade to 4.0.2, this is the error I see:
I'm just new to JS Promises and also gulp so any help would be appreciated.