Skip to content

Commit

Permalink
use compatible variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagonal committed May 10, 2017
1 parent 3c35774 commit 6a5f698
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ exports.register = function(server, options, next) {
});
}
if (options.url) {
const { statusCode, error, message } = response.output.payload;
const statusCode = response.output.payload.statusCode;
const error = response.output.payload.error;
const message = response.output.payload.message;
server.inject({
url: `${options.url}?statusCode=${statusCode}&error=${error}&message=${message}`,
method: 'GET',
Expand Down

0 comments on commit 6a5f698

Please sign in to comment.