dreamworkAPI
Ctrl K
GitHub
libraryDocs / http / github

http.github

librarysharedmenusource

The Github API library.

Classes & types

Functions

http.github.apiRequestMakes a request to the Github API and parses the JSON response.
http.github.compareCompares two refs.
http.github.createIssueCreates an issue, requires a token.
http.github.fetchBlobFetches the raw bytes of a blob, without the base64 overhead.
http.github.fetchFileFetches the raw content of a file.
http.github.fetchRawDownloads a response body as is (archives, raw files), anything but 200 is a failure.
http.github.fetchReleaseAssetDownloads a release asset.
http.github.fetchTarFetches the repository contents as a gzipped TAR archive.
http.github.fetchZipFetches the repository contents as a ZIP archive.
http.github.getBlobFetches the content of a blob (a blob = file contents) in a repository, using its SHA-1.
http.github.getBranchFetches a single branch of a repository.
http.github.getBranchesFetches the branches of a repository.
http.github.getCommitFetches a single commit, a branch or tag name resolves to its latest commit.
http.github.getCommitsFetches the commits of a repository.
http.github.getContentsFetches the metadata of a file or the listing of a directory.
http.github.getContributorsFetches a list of repository contributors.
http.github.getEmojisFetches a list of all github emojis.
http.github.getGistFetches a gist.
http.github.getIssuesFetches the issues of a repository (pull requests are included by Github).
http.github.getLanguagesFetches a list of repository languages.
http.github.getLatestReleaseFetches the latest published release of a repository.
http.github.getLicensesFetches a list of all github licenses.
http.github.getPullRequestsFetches the pull requests of a repository.
http.github.getRateLimitFetches the current rate limit state of the token (does not count against the limit).
http.github.getReadmeFetches the readme of a repository, the content is decoded.
http.github.getReleaseByTagFetches the release of a tag.
http.github.getReleasesFetches the releases of a repository.
http.github.getRepositoriesFetches a list of all repositories owned by an organization.
http.github.getRepositoryFetches a detailed information about a specific repository.
http.github.getRepositoryTagsFetches the tags (versions) of a repository.
http.github.getTopicsFetches the topics of a repository.
http.github.getTreeFetches a single Git tree — that is, a snapshot of the repository's file structure at a specific commit or tree.
http.github.getUserFetches the user profile.
http.github.getUserRepositoriesFetches a list of all public repositories owned by a user.
http.github.paginateFetches every page of a list endpoint and joins them into one list.
http.github.renderMarkdownRenders Markdown to HTML.
http.github.requestSends a request to the Github API.
http.github.searchCodeSearches code, requires a token.
http.github.searchRepositoriesSearches repositories.
http.github.templateReplaces all occurrences of {name} in pathname with the percent-encoded replaces[name].
http.github.templateRequestReplaces all placeholders in pathname (see template) and makes a request to the Github API.
http.github.tryApiRequestSame as apiRequest, but a 404 is not a failure: it returns true and nil.

#http.github.apiRequest

sharedmenuasyncnodiscardsource
async function http.github.apiRequest(method: http.RequestMethod, pathname: string, headers?: table, body?: string, do_cache?: boolean, extra?: http.github.RequestOptions): boolean, table | string

Makes a request to the Github API and parses the JSON response.

Works like pcall: returns true and the data, or false and the error message. Empty responses (204) give an empty table.

Parameters
NameTypeDescription
methodhttp.RequestMethodThe request method.
pathnamestringThe path to send the request to.
headersoptionaltableThe headers to send with the request.
bodyoptionalstringThe body to send with the request.
do_cacheoptionalbooleanWhether to cache the response.
extraoptionalhttp.github.RequestOptionsThe JSON body and query parameters.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringdataThe data returned from the API, or the error message.

#http.github.compare

sharedmenuasyncnodiscardsource
async function http.github.compare(owner: string, repo: string, base: string, head: string): boolean, table | string

Compares two refs.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
basestringThe base ref.
headstringThe head ref.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringcomparisonThe comparison (status, ahead_by, behind_by, commits, files), or the error message if ok is false.

#http.github.createIssue

sharedmenuasyncsource
async function http.github.createIssue(owner: string, repo: string, title: string, issue_body?: string, labels?: string[]): boolean, table | string

Creates an issue, requires a token.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
titlestringThe issue title.
issue_bodyoptionalstringThe issue text.
labelsoptionalstring[]The labels.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringissueThe created issue, or the error message if ok is false.

#http.github.fetchBlob

sharedmenuasyncnodiscardsource
async function http.github.fetchBlob(owner: string, repo: string, file_sha: string): boolean, string | string

Fetches the raw bytes of a blob, without the base64 overhead.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
file_shastringThe SHA1 value of the blob.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
string | stringcontentThe blob content, or the error message if ok is false.

#http.github.fetchFile

sharedmenuasyncnodiscardsource
async function http.github.fetchFile(owner: string, repo: string, path: string, ref?: string): boolean, string | string

Fetches the raw content of a file.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
pathstringThe path of the file.
refoptionalstringThe branch, tag or commit, the default branch if omitted.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
string | stringcontentThe file content, or the error message if ok is false.

#http.github.fetchRaw

asyncsource
async function http.github.fetchRaw(pathname: string, headers?: table): boolean, string

Downloads a response body as is (archives, raw files), anything but 200 is a failure.

Parameters
NameTypeDescription
pathnamestring
headersoptionaltable
Returns
TypeNameDescription
booleanok
stringbody_or_message

#http.github.fetchReleaseAsset

sharedmenuasyncnodiscardsource
async function http.github.fetchReleaseAsset(owner: string, repo: string, asset_id: integer): boolean, string | string

Downloads a release asset.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
asset_idintegerThe asset id (Release.assets[n].id).
Returns
TypeNameDescription
booleanokWhether the request succeeded.
string | stringcontentThe asset content, or the error message if ok is false.

#http.github.fetchTar

sharedmenuasyncnodiscardsource
async function http.github.fetchTar(owner: string, repo: string, ref?: string): boolean, string | string

Fetches the repository contents as a gzipped TAR archive.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
refoptionalstringThe branch name, tag name, or commit sha-1, the default branch if omitted.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
string | stringcontentThe body of the tarball, or the error message if ok is false.

#http.github.fetchZip

sharedmenuasyncnodiscardsource
async function http.github.fetchZip(owner: string, repo: string, ref?: string): boolean, string | string

Fetches the repository contents as a ZIP archive.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
refoptionalstringThe branch name, tag name, or commit sha-1, the default branch if omitted.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
string | stringcontentThe body of the zipball, or the error message if ok is false.

#http.github.getBlob

sharedmenuasyncnodiscardsource
async function http.github.getBlob(owner: string, repo: string, file_sha: string): boolean, http.github.Blob | string

Fetches the content of a blob (a blob = file contents) in a repository, using its SHA-1.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
file_shastringThe SHA1 value of the blob.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Blob | stringblobThe blob, or the error message if ok is false.

#http.github.getBranch

sharedmenuasyncnodiscardsource
async function http.github.getBranch(owner: string, repo: string, branch: string): boolean, table | string

Fetches a single branch of a repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
branchstringThe branch name.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringbranchThe branch, or the error message if ok is false.

#http.github.getBranches

sharedmenuasyncnodiscardsource
async function http.github.getBranches(owner: string, repo: string): boolean, table[] | string

Fetches the branches of a repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table[] | stringbranchesThe list of branches, or the error message if ok is false.

#http.github.getCommit

sharedmenuasyncnodiscardsource
async function http.github.getCommit(owner: string, repo: string, ref: string): boolean, http.github.Commit | string

Fetches a single commit, a branch or tag name resolves to its latest commit.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
refstringThe branch name, tag name, or commit sha-1.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Commit | stringcommitThe commit, or the error message if ok is false.

#http.github.getCommits

sharedmenuasyncnodiscardsource
async function http.github.getCommits(owner: string, repo: string, parameters?: table<string, any>, max_pages?: integer): boolean, http.github.Commit[] | string

Fetches the commits of a repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
parametersoptionaltable<string, any>Filters: sha (branch/tag/commit), path, author, since, until.
max_pagesoptionalintegerThe maximum number of pages, 1 by default.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Commit[] | stringcommitsThe list of commits, or the error message if ok is false.

#http.github.getContents

sharedmenuasyncnodiscardsource
async function http.github.getContents(owner: string, repo: string, path?: string, ref?: string): boolean, table | string

Fetches the metadata of a file or the listing of a directory.

The content of a file is decoded.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
pathoptionalstringThe path in the repository, empty is the root.
refoptionalstringThe branch, tag or commit, the default branch if omitted.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringcontentThe file object or the list of directory entries, or the error message if ok is false.

#http.github.getContributors

sharedmenuasyncnodiscardsource
async function http.github.getContributors(owner: string, repo: string): boolean, http.github.Contributor[] | string

Fetches a list of repository contributors.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Contributor[] | stringcontributorsThe list of contributors, or the error message if ok is false.

#http.github.getEmojis

sharedmenuasyncnodiscardsource
async function http.github.getEmojis(): boolean, table<string, string> | string

Fetches a list of all github emojis.

Returns
TypeNameDescription
booleanokWhether the request succeeded.
table<string, string> | stringdataThe list of emojis, or the error message if ok is false.

#http.github.getGist

sharedmenuasyncnodiscardsource
async function http.github.getGist(gist_id: string): boolean, table | string

Fetches a gist.

Parameters
NameTypeDescription
gist_idstringThe gist id.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringgistThe gist, files holds the content, or the error message if ok is false.

#http.github.getIssues

sharedmenuasyncnodiscardsource
async function http.github.getIssues(owner: string, repo: string, parameters?: table<string, any>, max_pages?: integer): boolean, table[] | string

Fetches the issues of a repository (pull requests are included by Github).

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
parametersoptionaltable<string, any>Filters: state, labels, assignee, since.
max_pagesoptionalintegerThe maximum number of pages, 1 by default.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table[] | stringissuesThe list of issues, or the error message if ok is false.

#http.github.getLanguages

sharedmenuasyncnodiscardsource
async function http.github.getLanguages(owner: string, repo: string): boolean, table<string, integer> | string

Fetches a list of repository languages.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table<string, integer> | stringlanguagesThe languages, or the error message if ok is false.

#http.github.getLatestRelease

sharedmenuasyncnodiscardsource
async function http.github.getLatestRelease(owner: string, repo: string): boolean, http.github.Release | string | nil

Fetches the latest published release of a repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Release | string | nilreleaseThe release, nil if there are none, or the error message if ok is false.

#http.github.getLicenses

sharedmenuasyncnodiscardsource
async function http.github.getLicenses(): boolean, http.github.License[] | string

Fetches a list of all github licenses.

Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.License[] | stringlistThe list, or the error message if ok is false.

#http.github.getPullRequests

sharedmenuasyncnodiscardsource
async function http.github.getPullRequests(owner: string, repo: string, parameters?: table<string, any>, max_pages?: integer): boolean, table[] | string

Fetches the pull requests of a repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
parametersoptionaltable<string, any>Filters: state, head, base, sort.
max_pagesoptionalintegerThe maximum number of pages, 1 by default.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table[] | stringpullsThe list of pull requests, or the error message if ok is false.

#http.github.getRateLimit

sharedmenuasyncnodiscardsource
async function http.github.getRateLimit(): boolean, table | string

Fetches the current rate limit state of the token (does not count against the limit).

Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringlimitsThe resources and rate tables sent by Github, or the error message if ok is false.

#http.github.getReadme

sharedmenuasyncnodiscardsource
async function http.github.getReadme(owner: string, repo: string, ref?: string): boolean, table | string

Fetches the readme of a repository, the content is decoded.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
refoptionalstringThe branch, tag or commit, the default branch if omitted.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringreadmeThe readme file object, or the error message if ok is false.

#http.github.getReleaseByTag

sharedmenuasyncnodiscardsource
async function http.github.getReleaseByTag(owner: string, repo: string, tag: string): boolean, http.github.Release | string | nil

Fetches the release of a tag.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
tagstringThe tag name.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Release | string | nilreleaseThe release, nil if not found, or the error message if ok is false.

#http.github.getReleases

sharedmenuasyncnodiscardsource
async function http.github.getReleases(owner: string, repo: string, max_pages?: integer): boolean, http.github.Release[] | string

Fetches the releases of a repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
max_pagesoptionalintegerThe maximum number of pages, 50 by default.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Release[] | stringreleasesThe list of releases, or the error message if ok is false.

#http.github.getRepositories

sharedmenuasyncnodiscardsource
async function http.github.getRepositories(organization: string): boolean, http.github.Repository[] | string

Fetches a list of all repositories owned by an organization.

Parameters
NameTypeDescription
organizationstringThe name of the organization.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Repository[] | stringreposThe list of repositories, or the error message if ok is false.

#http.github.getRepository

sharedmenuasyncnodiscardsource
async function http.github.getRepository(owner: string, repo: string): boolean, http.github.Repository | string

Fetches a detailed information about a specific repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Repository | stringrepoThe repository, or the error message if ok is false.

#http.github.getRepositoryTags

sharedmenuasyncnodiscardsource
async function http.github.getRepositoryTags(owner: string, repo: string, page?: integer): boolean, http.github.Repository.Tag[] | string

Fetches the tags (versions) of a repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
pageoptionalintegerThe page number, if omitted all pages are fetched.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Repository.Tag[] | stringtagsThe list of tags, or the error message if ok is false.

#http.github.getTopics

sharedmenuasyncnodiscardsource
async function http.github.getTopics(owner: string, repo: string): boolean, string[] | string

Fetches the topics of a repository.

Parameters
NameTypeDescription
ownerstringThe owner of the repository.
repostringThe name of the repository.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
string[] | stringtopicsThe list of topics, or the error message if ok is false.

#http.github.getTree

sharedmenuasyncnodiscardsource
async function http.github.getTree(owner: string, repo: string, tree_sha: string, recursive?: boolean, allow_truncated?: boolean): boolean, http.github.Tree | string

Fetches a single Git tree — that is, a snapshot of the repository's file structure at a specific commit or tree.

Recursive trees are limited by Github to 100,000 entries / 7 MB, a truncated tree throws unless allow_truncated is set.

Parameters
NameTypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.
tree_shastringThe SHA1 value or ref (branch or tag) name of the tree.
recursiveoptionalbooleanReturns the objects or subtrees referenced by the tree specified in :tree_sha.
allow_truncatedoptionalbooleanReturn a truncated tree instead of throwing.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Tree | stringtreeThe tree, or the error message if ok is false.

#http.github.getUser

sharedmenuasyncnodiscardsource
async function http.github.getUser(login: string): boolean, http.github.User | string

Fetches the user profile.

Parameters
NameTypeDescription
loginstringThe username.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.User | stringuserThe user, or the error message if ok is false.

#http.github.getUserRepositories

sharedmenuasyncnodiscardsource
async function http.github.getUserRepositories(login: string): boolean, http.github.Repository[] | string

Fetches a list of all public repositories owned by a user.

Parameters
NameTypeDescription
loginstringThe username.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
http.github.Repository[] | stringreposThe list of repositories, or the error message if ok is false.

#http.github.paginate

sharedmenuasyncnodiscardsource
async function http.github.paginate(pathname: string, parameters?: table<string, any>, max_pages?: integer, start_page?: integer): boolean, table[] | string

Fetches every page of a list endpoint and joins them into one list.

Pages are 100 items, the loop stops when there is no next link (or the page is not full if the link is unknown).

Parameters
NameTypeDescription
pathnamestringThe path to send the requests to.
parametersoptionaltable<string, any>The query parameters.
max_pagesoptionalintegerThe maximum number of pages to fetch, 50 by default.
start_pageoptionalintegerThe first page, 1 by default.
Returns
TypeNameDescription
booleanokWhether every page was fetched.
table[] | stringitemsThe joined list, or the error message.

#http.github.renderMarkdown

sharedmenuasyncnodiscardsource
async function http.github.renderMarkdown(text: string, repository?: string): boolean, string | string

Renders Markdown to HTML.

Parameters
NameTypeDescription
textstringThe Markdown text.
repositoryoptionalstringThe owner/repo used to link issues and mentions, switches to the gfm mode.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
string | stringhtmlThe rendered HTML, or the error message if ok is false.

#http.github.request

sharedmenuasyncnodiscardsource
async function http.github.request(method: http.RequestMethod, pathname: string, headers?: table, body?: string, do_cache?: boolean, extra?: http.github.RequestOptions): http.Response | nil, string | nil

Sends a request to the Github API.

Returns nil and a message when the rate limit is exhausted for too long, other statuses are returned as is.

Parameters
NameTypeDescription
methodhttp.RequestMethodThe request method.
pathnamestringThe path to send the request to.
headersoptionaltableThe headers to send with the request.
bodyoptionalstringThe body to send with the request.
do_cacheoptionalbooleanWhether to cache the response, only applies to GET requests, true by default.
extraoptionalhttp.github.RequestOptionsThe JSON body and query parameters.
Returns
TypeNameDescription
http.Response | nilresponseThe response, nil if the rate limit is exceeded.
string | nilmessageThe reason if there is no response.

#http.github.searchCode

sharedmenuasyncnodiscardsource
async function http.github.searchCode(query: string, page?: integer): boolean, table | string

Searches code, requires a token.

Parameters
NameTypeDescription
querystringThe search query (https://docs.github.com/en/search-github/searching-on-github/searching-code).
pageoptionalintegerThe page number, 1 by default.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringresulttotal_count and items (up to 100 matches), or the error message if ok is false.

#http.github.searchRepositories

sharedmenuasyncnodiscardsource
async function http.github.searchRepositories(query: string, page?: integer): boolean, table | string

Searches repositories.

Parameters
NameTypeDescription
querystringThe search query (https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories).
pageoptionalintegerThe page number, 1 by default.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringresulttotal_count and items (up to 100 repositories), or the error message if ok is false.

#http.github.template

sharedmenunodiscardsource
function http.github.template(pathname: string, replaces: table<string, any>): string

Replaces all occurrences of {name} in pathname with the percent-encoded replaces[name].

{+name} keeps / unencoded (for refs and file paths), . and .. segments are rejected, a missing value throws.

Parameters
NameTypeDescription
pathnamestringThe path to replace placeholders in.
replacestable<string, any>The table to replace placeholders with.
Returns
TypeNameDescription
stringpathnameThe path with placeholders replaced.

#http.github.templateRequest

sharedmenuasyncnodiscardsource
async function http.github.templateRequest(method: http.RequestMethod, pathname: string, replaces: table<string, any>, headers?: table, body?: string, do_cache?: boolean, extra?: http.github.RequestOptions): boolean, table | string

Replaces all placeholders in pathname (see template) and makes a request to the Github API.

Parameters
NameTypeDescription
methodhttp.RequestMethodThe request method.
pathnamestringThe path to send the request to.
replacestable<string, any>The table to replace placeholders with.
headersoptionaltableThe headers to send with the request.
bodyoptionalstringThe body to send with the request.
do_cacheoptionalbooleanWhether to cache the response.
extraoptionalhttp.github.RequestOptionsThe JSON body and query parameters.
Returns
TypeNameDescription
booleanokWhether the request succeeded.
table | stringdataThe data returned from the API, or the error message.

#http.github.tryApiRequest

sharedmenuasyncsource
async function http.github.tryApiRequest(method: http.RequestMethod, pathname: string, headers?: table, body?: string, do_cache?: boolean, extra?: http.github.RequestOptions): boolean, table | string | nil

Same as apiRequest, but a 404 is not a failure: it returns true and nil.

Parameters
NameTypeDescription
methodhttp.RequestMethodThe request method.
pathnamestringThe path to send the request to.
headersoptionaltableThe headers to send with the request.
bodyoptionalstringThe body to send with the request.
do_cacheoptionalbooleanWhether to cache the response.
extraoptionalhttp.github.RequestOptionsThe JSON body and query parameters.
Returns
TypeNameDescription
booleanokWhether the request succeeded (true for a 404).
table | string | nildataThe data returned from the API, nil if not found, or the error message.
Generated from the dreamwork meta branch.