guider icon indicating copy to clipboard operation
guider copied to clipboard

Choose an error code according to a failed priority setting

Open elfring opened this issue 4 years ago • 1 comments
trafficstars

The script “guider.py” contains the following source code at the moment.

…
        except:
            SysMgr.printErr((
                'fail to set the I/O schedling priority '
                'for %s(%s) to %s(%s)[%s]') % \
                    (comm, pid, ioclass, pri, nmWho), True)
            sys.exit(0)
…
  1. I suggest to use the text “failed to set the I/O scheduling priority” instead.
  2. Would you like to pass a more appropriate error code to the exit method call?

elfring avatar Sep 26 '21 15:09 elfring

I completely agree with you ;(

iipeace avatar Sep 27 '21 11:09 iipeace