ccrma / chuck

ChucK Music Programming Language
http://chuck.stanford.edu/
GNU General Public License v2.0
816 stars 130 forks source link

loading chugin fails (windows), offers cryptic "reason: 1920" #359

Closed gewang closed 1 year ago

gewang commented 1 year ago

this seems to happen on Windows, when trying to load a sym-link (created in cygwin) of a .chug file. it would be nice if chuck can be more informative than "1920"...

cc @AndrewAday

gewang commented 1 year ago

https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--1700-3999-

ERROR_CANT_ACCESS_FILE
1920 (0x780)
The file cannot be accessed by the system.

also: "The following list describes system error codes for errors 1700 to 3999. They are returned by the GetLastError function when many functions fail. To retrieve the description text for the error in your application, use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag."