Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addresses issue #8391 show runtime context on some failed operations #8393

Merged
merged 1 commit into from
Jul 23, 2018

Conversation

timotheecour
Copy link
Member

No description provided.

lib/pure/os.nim Outdated
@@ -1005,7 +1005,7 @@ proc existsOrCreateDir*(dir: string): bool {.rtl, extern: "nos$1",
if result:
# path already exists - need to check that it is indeed a directory
if not existsDir(dir):
raise newException(IOError, "Failed to create the directory")
raise newException(IOError, "Failed to create '"& dir & "'")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space before the first '&'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@timotheecour timotheecour force-pushed the pr_os_error_show_context_fix_8391 branch from fd33941 to ceff006 Compare July 22, 2018 23:55
@timotheecour timotheecour force-pushed the pr_os_error_show_context_fix_8391 branch from ceff006 to 64cf412 Compare July 22, 2018 23:55
@timotheecour
Copy link
Member Author

PTAL

@Araq Araq merged commit 9249276 into nim-lang:devel Jul 23, 2018
timotheecour added a commit to timotheecour/Nim that referenced this pull request Jul 23, 2018
@timotheecour timotheecour deleted the pr_os_error_show_context_fix_8391 branch July 23, 2018 21:17
timotheecour added a commit to timotheecour/Nim that referenced this pull request Jul 23, 2018
timotheecour added a commit to timotheecour/Nim that referenced this pull request Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants