File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/react-native-node-api-modules/src/node Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function removeReadPermissions(p: string) {
2929 } ;
3030
3131 const result = fswin . setAttributesSync ( p , attributes ) ;
32- if ( ! result ) console . error ( '!!!!! can not set attributes to remove read permissions' ) ;
32+ if ( ! result ) throw new Error ( " can not set attributes to remove read permissions" ) ;
3333}
3434
3535function restoreReadPermissions ( p : string ) {
@@ -46,7 +46,7 @@ function restoreReadPermissions(p: string) {
4646 } ;
4747
4848 const result = fswin . setAttributesSync ( p , attributes ) ;
49- if ( ! result ) console . error ( '!!!!! can not set attributes to restore read permissions' ) ;
49+ if ( ! result ) throw new Error ( " can not set attributes to restore read permissions" ) ;
5050}
5151
5252describe ( "isNodeApiModule" , ( ) => {
You can’t perform that action at this time.
0 commit comments