Skip to content

Commit

Permalink
Merge pull request #808 from moufort/785-Better-file-handling-error
Browse files Browse the repository at this point in the history
issue 785  Better file handling error
  • Loading branch information
Ducasse authored Aug 3, 2024
2 parents 391409e + 84ad33f commit 572bd66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Microdown-Tests/MicFileResourceReferenceTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ MicFileResourceReferenceTest >> testLoadNotFoundMicrodown [
ref loadMicrodown.
self fail
] on: Error do: [ :e |
self assert: e messageText equals: 'Microdown file not found' ]
self assert: e messageText equals: 'The Microdown file at "/readme.md" is not found' ]
]

{ #category : 'tests' }
Expand Down
2 changes: 1 addition & 1 deletion src/Microdown/MicFileResourceReference.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ MicFileResourceReference >> contents [
[^ self fileReference isDirectory ifTrue: [''] ifFalse: [self fileReference contents] ]
on: FileDoesNotExistException
do: [ :error |
error resignalAs: (MicResourceReferenceError new messageText: 'Microdown file not found') ]
error resignalAs: (MicResourceReferenceError new messageText: 'The Microdown file at "', self fullName , '" is not found') ]
]

{ #category : 'accessing' }
Expand Down

0 comments on commit 572bd66

Please sign in to comment.