Skip to content

Commit

Permalink
Print filename when loading of dictionary fails
Browse files Browse the repository at this point in the history
  • Loading branch information
philburk committed Sep 19, 2024
1 parent 46002ce commit 7ff4f58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion csrc/pf_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ ThrowCode pfDoForth( const char *DicFileName, const char *SourceName, cell_t IfI
pfDebugMessage("SourceName = "); pfDebugMessage(SourceName); pfDebugMessage("\n");
}


#ifdef PF_NO_GLOBAL_INIT
if( LoadCustomFunctionTable() < 0 ) goto error2; /* Init custom 'C' call array. */
#endif
Expand Down
3 changes: 3 additions & 0 deletions csrc/pf_save.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,9 @@ DBUG(("pfLoadDictionary: return %p\n", dic));
error:
sdCloseFile( fid );
xt_error:
MSG("Error loading dictionary from: ");
MSG(FileName);
EMIT_CR;
return NULL;
}

Expand Down

0 comments on commit 7ff4f58

Please sign in to comment.