@@ -373,8 +373,8 @@ static PromiseResult VerifyFilePromise(EvalContext *ctx, char *path, const Promi
373
373
break ;
374
374
case FS_ATTRS_FAILURE :
375
375
RecordFailure (ctx , pp , & a ,
376
- "Failed to clear the immutable bit on file '%s'" ,
377
- changes_path );
376
+ "Failed to clear the immutable bit on file '%s': %s " ,
377
+ changes_path , FSAttrsErrorCodeToString ( res ) );
378
378
result = PromiseResultUpdate (result , PROMISE_RESULT_FAIL );
379
379
break ;
380
380
case FS_ATTRS_NOT_SUPPORTED :
@@ -663,14 +663,15 @@ static PromiseResult VerifyFilePromise(EvalContext *ctx, char *path, const Promi
663
663
switch (res )
664
664
{
665
665
case FS_ATTRS_SUCCESS :
666
- Log (LOG_LEVEL_VERBOSE , "Set the immutable bit on file '%s'" ,
667
- changes_path );
666
+ RecordChange (ctx , pp , & a ,
667
+ "Set the immutable bit on file '%s'" ,
668
+ changes_path );
668
669
break ;
669
670
case FS_ATTRS_FAILURE :
670
671
/* Things still may be fine as long as the agent does not try to mutate the file */
671
- Log ( LOG_LEVEL_VERBOSE ,
672
- "Failed to set the immutable bit on file '%s': %s" ,
673
- changes_path , FSAttrsErrorCodeToString (res ));
672
+ RecordFailure ( ctx , pp , & a ,
673
+ "Failed to set the immutable bit on file '%s': %s" ,
674
+ changes_path , FSAttrsErrorCodeToString (res ));
674
675
break ;
675
676
case FS_ATTRS_NOT_SUPPORTED :
676
677
/* We will not treat this as a promise failure because this
0 commit comments