At the moment, [the code just calls `die`](https://github.com/mantisbt-plugins/source-integration/blob/master/Source/pages/repo_update_mappings.php#L83) with an error message when validation fails. Proper errors should be triggered instead.