Permalink
Browse files

Fix `logtalk_make/1` reported line for missing entity in previous commit

  • Loading branch information...
pmoura committed Dec 4, 2017
1 parent 5ec1327 commit aaf65801e6b6c5006091afe87995284f05cb9071
Showing with 4 additions and 3 deletions.
  1. +4 −3 core/core.pl
View
@@ -2775,16 +2775,17 @@
StartLine = -1
)
; % either reference found in main file or dynamically created entity
( '$lgt_entity_property_'(Entity, file_lines(File,Directory,_,_)) ->
( '$lgt_entity_property_'(Entity, file_lines(File,Directory,EntityLine,_)) ->
atom_concat(Directory, File, Path)
; % dynamically created entity
Path = ''
Path = '',
EntityLine = -1
),
( integer(Location) ->
StartLine = Location
; % either dynamically created entity or backend Prolog
% system that doesn't report line numbers
StartLine = -1
StartLine = EntityLine
)
).

0 comments on commit aaf6580

Please sign in to comment.