fix: tool run error checking