[misc] Improve error reporting