We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603ac12 commit f80f39eCopy full SHA for f80f39e
src/cli.cr
@@ -162,4 +162,17 @@ rescue ex : Shards::ParseError
162
rescue ex : Shards::Error
163
Shards::Log.error { ex.message }
164
exit 1
165
+rescue exc : File::AccessDeniedError
166
+ {% if flag?(:windows) %}
167
+ if exc.os_error == WinError::ERROR_PRIVILEGE_NOT_HELD && exc.message.try &.starts_with?("Error creating symlink")
168
+ Shards::Log.error { <<-TXT }
169
+ #{exc}
170
+
171
+ Shards needs symlinks to work. Please make sure to enable developer mode:
172
+ https://learn.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development
173
+ TXT
174
+ exit 1
175
+ end
176
+ {% end %}
177
+ raise exc
178
end
0 commit comments