You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix#993
- fatal() and interrupt() give false impression that fatal or interrupt
happens right away, instead of in a promise after state is updated. Make
them async to clear this up.
- most uses of these functions are already in async functions, add
'void' elsewhere to keep current behavior (mostly in arg validation)
- fix race condition where state could be changed after a call to
fatal() or interrupt() as they call async function
- Also add CrawlStatus type for clarity of available types
- bump to 1.12.2
Copy file name to clipboardExpand all lines: src/util/argParser.ts
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -794,7 +794,7 @@ class ArgParser {
794
794
795
795
// Check that the collection name is valid.
796
796
if(argv.collection.search(/^[\w][\w-]*$/)===-1){
797
-
logger.fatal(
797
+
voidlogger.fatal(
798
798
`\n${argv.collection} is an invalid collection name. Please supply a collection name only using alphanumeric characters and the following characters [_ - ]\n`,
0 commit comments