if false ; then exit 1 ; fi
or
if false ; then exit 1 fi
false & { echo "Error" ; exit 1 }
If you write everything in one line don't forget the last semicolon:
false && { echo "Error" ; exit 1 ; }