iipeace / guider

A Practically Applicable Performance Analyzer for Real Product Development
https://iipeace.github.io/docs/guider.html
GNU General Public License v2.0
629 stars 92 forks source link

Choose an error code according to a wrong depth type #264

Open elfring opened 3 years ago

elfring commented 3 years ago

A Python script contains the following statements at the moment.

            if not args.depth.isdigit():
                SysMgr.printErr('wrong depth type')
                sys.exit(0)

I suggest to pass an error code to the exit method call according to the previous error message.

iipeace commented 3 years ago

wow! It's a big job! ;( But I agree with you. I'll try to change them!