Open oliversalzburg opened 9 years ago
copyDirSyncRecursive both returns and throws errors, depending on where the error happens.
copyDirSyncRecursive
So you'd have to
try { var e = wrench.copyDirSyncRecursive(); if( e ) { throw e; } } catch( e ) { // Handle error }
I don't see why this is necessary. throw should be the way to go here.
throw
:+1: this bit me please be consistent.
copyDirSyncRecursive
both returns and throws errors, depending on where the error happens.So you'd have to
I don't see why this is necessary.
throw
should be the way to go here.