Fix error message when use uncompleted pattern
Refactoring changed code at da6542a
Merge branch 'feature/change-error-message' into develop
Merge branch 'feature/merge-imageid' into develop