improve error message for missing message dependencies (fix #1)