Skip to content

Commit

Permalink
populate the error string placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 25, 2021
1 parent 50a5c9f commit c563d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/nvenc/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ class NVENCException(Exception):
self.function = fn
self.code = code
self.api_message = nvencStatusInfo(code)
msg = "%s - returned %i"
msg = "%s - returned %i" % (fn, code)
if self.api_message:
msg += ": %s" % self.api_message
super().__init__(msg)
Expand Down

0 comments on commit c563d7e

Please sign in to comment.