Improve error handling (#1213)
* improve error handling* improve error handling
authored by Thibault Le Ouay and committed by GitHub 1 year ago 6bf8d47e 46aaded7