Skip to content

Commit

Permalink
Fix to avoid bad sad error
Browse files Browse the repository at this point in the history
  • Loading branch information
miyurud committed Jul 28, 2020
1 parent e0eb57f commit 552b851
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/microsoft.sheets/spreadsheet_endpoint.bal
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public type Workbook client object {
http:Response httpResponse = <http:Response>response;

if (httpResponse.statusCode != http:STATUS_CREATED) {
log:printDebug(() => "Error occurred while creating the worksheet. HTTP Status Code: " +
log:printDebug("Error occurred while creating the worksheet. HTTP Status Code: " +
httpResponse.statusCode.toJsonString() + ", Reason : " + httpResponse.reasonPhrase);
return HttpResponseHandlingError("Error occurred while creating the worksheet.");
}
Expand Down Expand Up @@ -201,7 +201,7 @@ public type Workbook client object {
if (httpResponse.statusCode == http:STATUS_NO_CONTENT) {
return ();
} else {
log:printDebug(() => "Error occurred while deleting the worksheet. HTTP Status Code: " +
log:printDebug("Error occurred while deleting the worksheet. HTTP Status Code: " +
httpResponse.statusCode.toJsonString() + ", Reason : " + httpResponse.reasonPhrase);
return HttpResponseHandlingError("Error occurred while deleting the worksheet.");
}
Expand Down Expand Up @@ -253,7 +253,7 @@ public type Worksheet client object {
http:Response httpResponse = <http:Response>response;

if (httpResponse.statusCode != http:STATUS_CREATED) {
log:printDebug(() => "Error occurred while creating the table. HTTP Status Code: " +
log:printDebug("Error occurred while creating the table. HTTP Status Code: " +
httpResponse.statusCode.toJsonString() + ", Reason : " + httpResponse.reasonPhrase);
return HttpResponseHandlingError("Error occurred while creating the table.");
}
Expand Down Expand Up @@ -293,7 +293,7 @@ public type Worksheet client object {
return resultsTable;
}

log:printDebug(() => "Table created (" + createdTableName + ") carries different name than what " +
log:printDebug("Table created (" + createdTableName + ") carries different name than what " +
"was passed as the table name (" + tableName + "). Now patching the table with the correct " +
"table name.");

Expand Down Expand Up @@ -323,7 +323,7 @@ public type Worksheet client object {
http:Response httpResponse = <http:Response>response;

if (httpResponse.statusCode != http:STATUS_OK) {
log:printDebug(() => "Error occurred while inserting data into table. HTTP Status Code: " +
log:printDebug("Error occurred while inserting data into table. HTTP Status Code: " +
httpResponse.statusCode.toJsonString() + ", Reason : " + httpResponse.reasonPhrase);
return HttpResponseHandlingError("Error occurred while inserting data into table.");
}
Expand Down Expand Up @@ -397,7 +397,7 @@ public type Table client object {
if (httpResponse.statusCode == http:STATUS_CREATED) {
return ();
} else {
log:printDebug(() => "Error occurred while inserting data into table. HTTP Status Code: " +
log:printDebug("Error occurred while inserting data into table. HTTP Status Code: " +
httpResponse.statusCode.toJsonString() + ", Reason : " + httpResponse.reasonPhrase);
return HttpResponseHandlingError("Error occurred while inserting data into table.");
}
Expand All @@ -422,7 +422,7 @@ public type Table client object {
self.properties.tableName = newTableName;
return ();
} else {
log:printDebug(() => "Error occurred while renaming the table. HTTP Status Code: " +
log:printDebug("Error occurred while renaming the table. HTTP Status Code: " +
httpResponse.statusCode.toJsonString() + ", Reason : " + httpResponse.reasonPhrase);
return HttpResponseHandlingError("Error occurred while renaming the table.");
}
Expand All @@ -448,7 +448,7 @@ public type Table client object {
if (httpResponse.statusCode == http:STATUS_OK) {
return ();
} else {
log:printDebug(() => "Error occurred while setting the table header. HTTP Status Code: " +
log:printDebug("Error occurred while setting the table header. HTTP Status Code: " +
httpResponse.statusCode.toJsonString() + ", Reason : " + httpResponse.reasonPhrase);
return HttpResponseHandlingError("Error occurred while setting the table header.");
}
Expand Down

0 comments on commit 552b851

Please sign in to comment.