Add missing header
Improve message in case of failure