Bug 14949 – Non-descriptive "Enforcement failed" when attempting to write to closed file

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-08-22T16:24:00Z
Last change time
2015-10-04T18:20:26Z
Keywords
pull
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2015-08-22T16:24:00Z
//////// test.d //////// import std.stdio; void main() { File f; f.writeln("Hello!"); } //////////////////////// This prints: object.Exception@std\stdio.d(2450): Enforcement failed Error message could be better.
Comment #1 by dlang-bugzilla — 2015-08-22T16:29:18Z
Comment #2 by github-bugzilla — 2015-08-22T17:33:27Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/78a0fb92e9d69d89eb8c4e87fce0f0cd7d67cb14 fix Issue 14949 - Non-descriptive "Enforcement failed" when attempting to write to closed file https://github.com/D-Programming-Language/phobos/commit/a331d7f870cb3f2b32c5fff1edd3bc371ce4a057 Merge pull request #3573 from CyberShadow/pull-20150822-162819 fix Issue 14949 - Non-descriptive "Enforcement failed" when attemptin…
Comment #3 by github-bugzilla — 2015-10-04T18:20:26Z
Commits pushed to stable at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/78a0fb92e9d69d89eb8c4e87fce0f0cd7d67cb14 fix Issue 14949 - Non-descriptive "Enforcement failed" when attempting to write to closed file https://github.com/D-Programming-Language/phobos/commit/a331d7f870cb3f2b32c5fff1edd3bc371ce4a057 Merge pull request #3573 from CyberShadow/pull-20150822-162819