Issue #21: showing warning message instead of error message