Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/Spec2-Commander2/SpInvalidUserInputError.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Extension { #name : 'SpInvalidUserInputError' }
{ #category : '*Spec2-Commander2' }
SpInvalidUserInputError >> actForSpec [
"Does nothing on purpose."
UIManager default
inform: self messageText.

SpApplication defaultApplication inform: self messageText.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you have a reference to the SpApplication instance?
Because you are not sure the application that triggered SpInvalidUserInputError is the default or not. It is better to avoid the use of globals.
If you don't have it, you could pass it to SpInvalidUserInputError when creating the error.

self flag: #TODO "In the best world, we should delegate the behaviour to the Spec presenter which originated the error."
]
Loading