mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2026-02-05 00:55:52 +08:00
convert error into string an mark build as failed
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -2654,7 +2654,7 @@ const instance = axios.create(instanceConfig);
|
||||
core.setOutput('response', JSON.stringify(response.data))
|
||||
} catch (error) {
|
||||
if (error.toJSON) {
|
||||
core.setOutput(error.toJSON());
|
||||
core.setOutput(JSON.stringify(error.toJSON()));
|
||||
}
|
||||
|
||||
if (error.response) {
|
||||
|
||||
Reference in New Issue
Block a user