why do we have that inspect here - which we do not have in the other scripts? this turns that error into a string.
Because I've never looked into that callback function details? what does it exactly do? is it better to pass in a string than an error object?
why do we have that inspect here - which we do not have in the other scripts? this turns that error into a string.
Because I've never looked into that callback function details? what does it exactly do? is it better to pass in a string than an error object?
raucao
(Migrated from github.com)
reviewed 2019-04-28 20:19:26 +00:00
This is copied straight from another script I added the first error handling to, and where it's still present:
https://github.com/67P/kredits-contracts/blob/master/scripts/add-contribution.js#L56
bumi
(Migrated from github.com)
reviewed 2019-05-01 18:05:16 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
utACK
@@ -0,0 +23,4 @@}).catch(error => {console.log('Failed to veto contribution');callback(inspect(error));why do we have that inspect here - which we do not have in the other scripts? this turns that error into a string.
Because I've never looked into that callback function details? what does it exactly do? is it better to pass in a string than an error object?
@@ -0,0 +23,4 @@}).catch(error => {console.log('Failed to veto contribution');callback(inspect(error));This is copied straight from another script I added the first error handling to, and where it's still present:
https://github.com/67P/kredits-contracts/blob/master/scripts/add-contribution.js#L56
@@ -0,0 +23,4 @@}).catch(error => {console.log('Failed to veto contribution');callback(inspect(error));ah I see.
I guess we don't need it and also don't use it everywhere.