Merge branch 'foss42:main' into enhance-auth-fields

This commit is contained in:
Udhay Adithya
2025-07-21 11:57:18 +05:30
committed by GitHub
5 changed files with 2617 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ Future<
// Process Results
if (result.isError) {
print("Pre-request script execution error: ${result.stringResult}");
// Handle error - maybe show in UI, keep original request/env
//TODO: Handle error - log this error in the logs console
} else if (result.stringResult.isNotEmpty) {
final resultMap = jsonDecode(result.stringResult);
if (resultMap is Map<String, dynamic>) {
@@ -153,7 +153,7 @@ Future<
Map<String, Object?>.from(resultMap['request']));
} catch (e) {
print("Error deserializing modified request from script: $e");
//TODO: Handle error - maybe keep original request?
//TODO: Handle error - log this error in the logs console
}
}
// Get Environment Modifications

View File

@@ -58,6 +58,7 @@ Future<RequestModel> handlePreRequestScript(
if (scriptResult.updatedEnvironment.isNotEmpty) {
debugPrint(
"Warning: Pre-request script updated environment variables, but no active environment was selected to save them to.");
return requestModel;
}
return newRequestModel;
}