playcanvas / playcanvas-sync

Real-time synchronization of files between PlayCanvas and your local machine
https://playcanvas.com/
MIT License
75 stars 18 forks source link

It is hard to detect a user error externally for pcsync rename since the return code is 0 #41

Open querielo opened 2 years ago

querielo commented 2 years ago

It is hard to detect if a pcsync command is done since wrapUserErrors does not cause the program returns non-zero code.

For example, pcsync rename lalalilolu.txt lalelilolu.txt always returns 0 even if lalalilolu.txt does not exist. And you have to parse stdout to detect the issue.