fix: typo
This commit is contained in:
@@ -93,7 +93,7 @@ export const CsRestsharpCodegen = {
|
||||
|
||||
// analyse result
|
||||
requestString.push(
|
||||
`if (!response.IsSuccessful)\n{\n Console.WriteLine("An error occured " + response.ErrorMessage);\n}\n\n`
|
||||
`if (!response.IsSuccessful)\n{\n Console.WriteLine("An error occurred " + response.ErrorMessage);\n}\n\n`
|
||||
)
|
||||
|
||||
requestString.push(`var result = response.Content;\n`)
|
||||
|
||||
@@ -65,13 +65,13 @@ export const GoNativeCodegen = {
|
||||
genHeaders = genHeaders.join("").slice(0, -1)
|
||||
requestString.push(`${genHeaders}\n`)
|
||||
requestString.push(
|
||||
`if err != nil {\n log.Fatalf("An Error Occured %v", err)\n}\n\n`
|
||||
`if err != nil {\n log.Fatalf("An error occurred %v", err)\n}\n\n`
|
||||
)
|
||||
|
||||
// request boilerplate
|
||||
requestString.push(`client := &http.Client{}\n`)
|
||||
requestString.push(
|
||||
`resp, err := client.Do(req)\nif err != nil {\n log.Fatalf("An Error Occured %v", err)\n}\n\n`
|
||||
`resp, err := client.Do(req)\nif err != nil {\n log.Fatalf("An error occurred %v", err)\n}\n\n`
|
||||
)
|
||||
requestString.push(`defer resp.Body.Close()\n`)
|
||||
requestString.push(
|
||||
|
||||
@@ -77,7 +77,7 @@ export const SalesforceApexCodegen = {
|
||||
requestString.push(` System.debug(response.getBody());\n`)
|
||||
requestString.push(`} catch (CalloutException ex) {\n`)
|
||||
requestString.push(
|
||||
` System.debug('An error occured ' + ex.getMessage());\n`
|
||||
` System.debug('An error occurred ' + ex.getMessage());\n`
|
||||
)
|
||||
requestString.push(`}`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user