I think we should rather throw an error here. Still the errors/exceptions management in this application is not in place, but we should give: 

* a message
* a copy of the actual input