Fix arrow function syntax in catch handler
This commit is contained in:
1 parent
54ed7aaffd
commit
91fb9493cc
1 file changed
+4
-2
+4
-2
@@ -1394,9 +1394,11 @@ def jobs():
|
||||
}
|
||||
console.log('[updateJobs] Update complete!');
|
||||
})
|
||||
.catch(error => {
|
||||
.catch(function(error) {
|
||||
console.error('[updateJobs] Error updating jobs:', error);
|
||||
console.error('[updateJobs] Error stack:', error.stack);
|
||||
if (error.stack) {
|
||||
console.error('[updateJobs] Error stack:', error.stack);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user