[pt::Builder] add error handling
Merge pull request #96 from errordeveloper/pt_error_handling

[pt::Builder] add error handling

Reviewed-by: farcaller