more informative message on result code check