Print error if file couldn't be created