[scheduler-ui] Add proper error messages to the custom task UI