Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1469 from MartinNowak/revert_throwable_message
Browse files Browse the repository at this point in the history
Revert "Merge pull request #1445 from WalterBright/message"
  • Loading branch information
andralex committed Jan 17, 2016
2 parents 84d547f + 80e5059 commit 0f958ab
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/object.d
Expand Up @@ -1689,7 +1689,6 @@ class Throwable : Object
sink("@"); sink(file);
sink("("); sink(sizeToTempString(line, tmpBuff, 10)); sink(")");

auto msg = message();
if (msg.length)
{
sink(": "); sink(msg);
Expand All @@ -1710,19 +1709,6 @@ class Throwable : Object
}
}
}

/**
* Get the message describing the error.
* Base behavior is to return the `Throwable.msg` field.
* Override to return some other error message.
*
* Returns:
* message
*/
const(char)[] message() const
{
return msg;
}
}


Expand Down

0 comments on commit 0f958ab

Please sign in to comment.