Refactor: Fix indentation and error message