summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_setup.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-01 15:21:01 +0200
committer couriersud <couriersud@gmx.org>2020-05-01 15:21:01 +0200
commit40f8f99f9ae8a1dd709ef8e0cca488f533d22d41 (patch)
treecfdcbc5d58eb6e2294cf09a4c55d0b7cdcf99885 /src/lib/netlist/nl_setup.cpp
parent644e330b71acc10f46c632b30c81fc08ad602656 (diff)
netlist: Removed more magic numbers from the code. (nw)
Diffstat (limited to 'src/lib/netlist/nl_setup.cpp')
-rwxr-xr-xsrc/lib/netlist/nl_setup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/netlist/nl_setup.cpp b/src/lib/netlist/nl_setup.cpp
index 3ba4345267a..228ddf7c1c7 100755
--- a/src/lib/netlist/nl_setup.cpp
+++ b/src/lib/netlist/nl_setup.cpp
@@ -1146,7 +1146,7 @@ nl_fptype models_t::value(const pstring &model, const pstring &entity)
case 'a': factor = nlconst::magic(1e-18); break; // NOLINT
default:
if (*p < '0' || *p > '9')
- throw nl_exception(MF_UNKNOWN_NUMBER_FACTOR_IN_1(entity));
+ throw nl_exception(MF_UNKNOWN_NUMBER_FACTOR_IN_2(model, entity));
}
if (factor != nlconst::one())
tmp = plib::left(tmp, tmp.size() - 1);