summaryrefslogtreecommitdiff
path: root/c++/codec-netcdf/netcdf.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++/codec-netcdf/netcdf.h')
-rw-r--r--c++/codec-netcdf/netcdf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/codec-netcdf/netcdf.h b/c++/codec-netcdf/netcdf.h
index d579b7f..c99217e 100644
--- a/c++/codec-netcdf/netcdf.h
+++ b/c++/codec-netcdf/netcdf.h
@@ -2,7 +2,7 @@
#include <forstio/core/string_literal.h>
#include <forstio/core/error.h>
-#include <forstio/codec/codec.h>
+#include <forstio/codec/data.h>
#include <netcdf.h>
@@ -66,7 +66,7 @@ public:
*/
template<typename FromEncoding>
error_or<void> encode() {
- return void_t{};
+ return make_error<err::not_implemented>();
}
/**
@@ -78,7 +78,7 @@ public:
int rc{};
rc = nc_open(from_decode.get_path().c_str(), NC_NOWRITE, &ncid);
- if(rc){
+ if(rc != NC_NOERR){
// Don't know how to get the error, so fail critically.
return make_error<err::critical>();
}