Function

FwupdPlugincommon_error_array_get_best

Declaration [src]

GError*
fu_common_error_array_get_best (
  GPtrArray* errors
)

Description [src]

Finds the ‘best’ error to show the user from a array of errors, creating a completely bespoke error where required.

Available since:1.0.8

Parameters

errors An array of GError*
 

Array of errors.

 The data is owned by the caller of the function.

Return value

Returns: GError*
 

A GError, never NULL.

 The caller of the function takes ownership of the data, and is responsible for freeing it.