aboutsummaryrefslogtreecommitdiff
path: root/bpkg/cfg-create.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-15 16:26:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-16 13:03:13 +0300
commit8b69cab7c802a0d0bd9cc90da33002dd5f86042f (patch)
treeb7bc7c020ffb440b5b8f203ed4a91d9f0f5793a2 /bpkg/cfg-create.cxx
parent564801acd608513adb07244829735ffb2669685d (diff)
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'bpkg/cfg-create.cxx')
-rw-r--r--bpkg/cfg-create.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/bpkg/cfg-create.cxx b/bpkg/cfg-create.cxx
index 1d8171f..2c8bd0a 100644
--- a/bpkg/cfg-create.cxx
+++ b/bpkg/cfg-create.cxx
@@ -104,7 +104,7 @@ namespace bpkg
ofs.close ();
}
- catch (const ofdstream::failure& e)
+ catch (const io_error& e)
{
fail << "unable to write to " << f << ": " << e.what ();
}
@@ -135,7 +135,7 @@ namespace bpkg
ofs.close ();
}
- catch (const ofdstream::failure& e)
+ catch (const io_error& e)
{
fail << "unable to write to " << f << ": " << e.what ();
}
@@ -154,7 +154,7 @@ namespace bpkg
ofs.close ();
}
- catch (const ofdstream::failure& e)
+ catch (const io_error& e)
{
fail << "unable to write to " << f << ": " << e.what ();
}