Skip to content

Commit

Permalink
add more chugin @import error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Nov 1, 2024
1 parent 1391e2d commit 21bcf34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ChucK VERSIONS log
------------------

1.5.4.0 (October 2024)
1.5.4.0 (November 2024)
=======
********** new language feature ************
@import system for .ck and .chug files
Expand All @@ -11,7 +11,6 @@ ChucK VERSIONS log
***************************************************
https://chuck.stanford.edu/doc/language/import.html
***************************************************

- the @import system imports classes and operator overloads from another
.ck file, or from a chugin; it is designed to faciliate creating,
using, and distributing multi-file programs and libraries
Expand Down
2 changes: 1 addition & 1 deletion src/core/chuck_compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ t_CKBOOL type_engine_scan_import( Chuck_Env * env, a_Stmt_List stmt_list,
{
// print error (chugin loading only prints to log)
EM_error2( import->where, "cannot load chugin: '%s'...", theFile.c_str() );
EM_error2( 0, "...(reason) %s", errorStr.length() ? errorStr.c_str() : "[none given, unhelpfully]" );
EM_error2( 0, "...(reason) %s", errorStr.length() ? errorStr.c_str() : "[none provided, unhelpfully (try running with more verbose log-level)]" );
EM_error2( 0, "...in file '%s'", abs.c_str() );
// error encountered in chugin load, bailing out
return FALSE;
Expand Down

0 comments on commit 21bcf34

Please sign in to comment.