randydev commited on
Commit
c923561
·
1 Parent(s): febc679
Files changed (1) hide show
  1. lib/all.js +8 -3
lib/all.js CHANGED
@@ -124,9 +124,14 @@ function generateRandomTimestamp() {
124
  }
125
 
126
  async function FBDownloaderV2(url) {
127
- const results = await getFbVideoInfo(url);
128
- console.log(results);
129
- return results;
 
 
 
 
 
130
  }
131
 
132
 
 
124
  }
125
 
126
  async function FBDownloaderV2(url) {
127
+ try {
128
+ const results = getFbVideoInfo(url);
129
+ console.log(results);
130
+ return results;
131
+ } catch (error) {
132
+ console.error(error);
133
+ return null;
134
+ }
135
  }
136
 
137