Display error message.
Function signature

st.error(body)

Parameters

body (str)

The error text to display.

Example

st.error('This is an error')

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.