better error message in case of missing uids
Merge pull request #2782 from soenkehahn/better_error_message_missing_uid

better error message in case of missing uids