---
title: "Comment by Gary McMeekin on \"Code Smell 184 - Exception Arrow Code\" | Hashnode"
description: "I really enjoy these posts. Thank you for taking the time to do this work. An understandable refactoring error, but in the problem code you only save if the fil"
url: "https://hashnode.com/posts/code-smell-184-exception-arrow-code/638d1c92c30dc85277832e49/comment/638e0690895a9daa034fc057"
---

[Discussion](https://hashnode.com/posts/code-smell-184-exception-arrow-code/638d1c92c30dc85277832e49)

Comment [Code Smell 184 - Exception Arrow Code](https://hashnode.com/posts/code-smell-184-exception-arrow-code/638d1c92c30dc85277832e49)

[Gary McMeekin](https://hashnode.com/@garymcm)

[Dec 5, 2022](https://hashnode.com/posts/code-smell-184-exception-arrow-code/638d1c92c30dc85277832e49/comment/638e0690895a9daa034fc057)

I really enjoy these posts. Thank you for taking the time to do this work.

An understandable refactoring error, but in the problem code you only save if the file doesn't exist, but in the refactored code you left in the negation, meaning if the file doesn't exist you raise a File Exists exception.

I'll delete myself if I've read that wrong :).

[Maxi Contieri](https://hashnode.com/@mcsee)

[Dec 6, 2022](https://hashnode.com/posts/code-smell-184-exception-arrow-code/638d1c92c30dc85277832e49/comment/638e0690895a9daa034fc057#reply-638f5114d8d8c9aa28bd131c)

Amazing!

Love this kind of comments. It was a refactoring mistake due to the lack of tests. And nobody noticed it before.

Fixed. Thank you so much!
