Refactor error handling and some more in the visualization
- Instead of having errors and warnings, we should use a watcher to set the
failureType - Stop using
isEmptyand instead just use the length of stages
failureType
isEmpty and instead just use the length of stages