Gio.Task.prototype.had_error

function had_error(): Boolean {
    // Gjs wrapper for g_task_had_error()
}
  

Tests if task resulted in an error.

Since 2.36

Returns

true if the task resulted in an error, false otherwise.