Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/EpiceaBrowsers/EpLogBrowserOperationFactory.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,14 @@ EpLogBrowserOperationFactory >> events [
EpLogBrowserOperationFactory >> handleErrorDuring: aBlock [
"TODO: do not catch *all* Errors.
This error handler exists as a workaround to skip any unexpected error when applying or reverting a code change from GUI.
For example, when user reverts the protocol addition of a protocol that is already not present, and such action signals an unexpected error. The error in such case should be avoided via testing API."

aBlock
on: Error
do: self errorHandlerBlock
For example, when user reverts the protocol addition of a protocol that is already not present, and such action signals an unexpected error. The error in such case should be avoided via testing API.

Rebutal: If you silent all errors, you will never fix the one you can fix, and you will silently ignore the ones that the user need to catch.
"

aBlock value
" on: Error
do: self errorHandlerBlock"
]

{ #category : #private }
Expand Down
4 changes: 4 additions & 0 deletions src/OpalCompiler-Tests/OpalCompilerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Class {
#category : #'OpalCompiler-Tests-Misc'
}

{ #category : #error }
OpalCompilerTest >> faultySource [ ^ 1+]
]

{ #category : #'tests - bindings' }
OpalCompilerTest >> testArrayBindingsWithUppercaseNameDoOverwriteGlobals [
| result |
Expand Down