Error handling

Sorry wrong post… :)