lib/bixby-common/command_response.rb in bixby-common-0.4.10 vs lib/bixby-common/command_response.rb in bixby-common-0.4.11

- old
+ new

@@ -11,10 +11,10 @@ # @param [JsonResponse] res # # @return [CommandResponse] def self.from_json_response(res) cr = CommandResponse.new(res.data) - if res.message then + if !(res.message.nil? || res.message.empty?) then cr.status ||= 255 cr.stderr ||= res.message end return cr end