I have add the -E option to #tektoncd tkn cli to exit with the pipelinerun error, so when you have an error in your task/pipelinerun the shell will exit with it, you can then combine with other tools like

tkn pr logs -n foo pipelinerun-1 || notify-send "Pipeline pipelinerun-1 has failed"