예제 #1
0
파일: command.py 프로젝트: B-Rich/ctk
    def err(self, msg):
        """
        Called by ``Command._err()``.

        Prepends 'error: ' to `msg` if it's not already present.
        Adds trailing linesep to `msg` if there's not one already.
        """
        return prepend_error_if_missing(msg)
예제 #2
0
파일: command.py 프로젝트: MShaffar19/ctk
    def err(self, msg):
        """
        Called by ``Command._err()``.

        Prepends 'error: ' to `msg` if it's not already present.
        Adds trailing linesep to `msg` if there's not one already.
        """
        return prepend_error_if_missing(msg)
예제 #3
0
파일: cli.py 프로젝트: MShaffar19/ctk
 def _commandline_error(self, cl, msg):
     args = (self.program_name, cl.name, msg)
     msg = '%s %s failed: %s' % args
     sys.stderr.write(prepend_error_if_missing(msg))
     return self._exit(1)
예제 #4
0
파일: cli.py 프로젝트: ContinuumIO/ctk
 def _commandline_error(self, cl, msg):
     args = (self.program_name, cl.name, msg)
     msg = '%s %s failed: %s' % args
     sys.stderr.write(prepend_error_if_missing(msg))
     return self._exit(1)