Better Patavi error handling

- Show the cause and code of any error
Add exact SWING preferences
Move MACBETH solve test