ERROR: invalid-location file line ;
: edit-location ( file line -- )
- over [ invalid-location ] unless
+ over [ throw-invalid-location ] unless
[ absolute-path ] dip
editor-command [ run-and-wait-for-editor ] when* ;
GENERIC: edit ( object -- )
M: object edit
- dup where [ first2 edit-location ] [ cannot-find-source ] ?if ;
+ dup where [ first2 edit-location ] [ throw-cannot-find-source ] ?if ;
M: string edit edit-vocab ;