Refactor Session error handling
Merge pull request #1109 from excilys/session-refactoring

Refactor Session error handling