summaryrefslogtreecommitdiff
path: root/io/source/connector
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-09-26 21:58:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-27 09:50:31 +0200
commit960252e129bb72e10790672a5650c0ce24e0f1e0 (patch)
tree2fbd8842a2dd3c1aa88656a83ccd975419985e74 /io/source/connector
parente0ce9ec1a543d5cbb91d061db067847052bf9c7e (diff)
improve some exception messages
Change-Id: Ifc5d940fbf77ae13071c299fb6168bdc55dc5c95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103493 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io/source/connector')
-rw-r--r--io/source/connector/ctr_pipe.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/io/source/connector/ctr_pipe.cxx b/io/source/connector/ctr_pipe.cxx
index 8d66dea7b901..5ee0b70bc970 100644
--- a/io/source/connector/ctr_pipe.cxx
+++ b/io/source/connector/ctr_pipe.cxx
@@ -51,7 +51,7 @@ namespace stoc_connector {
{
if( m_nStatus )
{
- throw IOException();
+ throw IOException("pipe already closed");
}
if( aReadBytes.getLength() != nBytesToRead )
{
@@ -65,11 +65,11 @@ namespace stoc_connector {
{
if( m_nStatus )
{
- throw IOException();
+ throw IOException("pipe already closed");
}
if( m_pipe.write( seq.getConstArray() , seq.getLength() ) != seq.getLength() )
{
- throw IOException();
+ throw IOException("short write");
}
}