# Cat: command not found #JV1

**URL:** <https://forum.codecrafters.io/t/cat-command-not-found-jv1/5012>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [February 19, 2025, 10:57pm UTC](https://forum.codecrafters.io/t/cat-command-not-found-jv1/5012 "2025-02-19T22:57:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![noplisu](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/noplisu/32/5134_2.png) [@noplisu](https://forum.codecrafters.io/u/noplisu)\
**Post date:** [February 20, 2025, 12:00am UTC](https://forum.codecrafters.io/t/cat-command-not-found-jv1/5012/2 "2025-02-20T00:00:22Z")

</div>

Hey,  
Isn’t the problem with this part:

```go
			err := command.Run()
			if err != nil {
				fmt.Fprintln(errors, cmd+": command not found")
			}

```

?  
You get the

```auto
cat: nonexistent: No such file or directory

```

from the cat command itselt but the command returns an error so you handle it by displaying

```auto
cat: command not found

```

if you were to just ignore the err you would probably get the correct output

---

_[View the full topic](https://forum.codecrafters.io/t/cat-command-not-found-jv1/5012)._
