Skip to content

v1.15.4 - Better Error Diagnostics for Pi Tools

Choose a tag to compare

@Tefx Tefx released this 03 Jan 14:50
· 1436 commits to Main since this release

Fixed

  • Pi Custom Tools: Error Message Capture - Improved error diagnostics
    • Enhanced error message capture to include both stderr and stdout
    • Prevents empty error messages like Failed to extract TOC:
    • Fallback to "Unknown error" if both streams are empty
    • Solves diagnostic issue where error details were missing:
      • Root cause: Some errors may output to stdout instead of stderr
      • Pi's exec() stderr might be empty even when command fails
    • All 9 tools now provide clear error messages for debugging
    • Fixed in: invar_sig, invar_map, invar_doc_toc, invar_doc_read, invar_doc_find, invar_doc_replace, invar_doc_insert, invar_doc_delete

Example

Before this fix, when a tool failed, you'd see:

Failed to extract TOC: 

After this fix, you'll see the actual error:

Failed to extract TOC: Error: No files found matching 'missing.md'