Print lines matching pattern sed

Print only lines that match ERROR

sed -n '/ERROR/p' app.log