Skip to content

Commit

Permalink
differ
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Brichau committed Jan 27, 2024
1 parent 3e14466 commit eb15cc9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
javascript
catchErrorHandlerFunction

^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "Red"'),
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Catch Error</p>"')
asFunction: #( 'result' )
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ javascript
errorHandlerFunction

^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "Red"'),
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Error "+result.text()+"</p>"')
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Error</p>"')
asFunction: #( 'result' )
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ renderMethodPreflightTestOn: html
with: self successHandlerFunction
with: self errorHandlerFunction;
call: 'catch'
with: self errorHandlerFunction);
with: self catchErrorHandlerFunction);
with: text.
html space ] ]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ renderSimpleRequestTestOn: html
with: self successHandlerFunction
with: self errorHandlerFunction;
call: 'catch'
with: self errorHandlerFunction);
with: self catchErrorHandlerFunction);
with: text.
html space ] ]

0 comments on commit eb15cc9

Please sign in to comment.