Merging error handling