Fixed use of "cmd_error" in passes/cmds/design.cc
authorClifford Wolf <clifford@clifford.at>
Fri, 7 Feb 2014 13:16:42 +0000 (14:16 +0100)
committerClifford Wolf <clifford@clifford.at>
Fri, 7 Feb 2014 13:16:42 +0000 (14:16 +0100)
passes/cmds/design.cc

index c28a3a49f43e7d5c9e08d39d18fdf165021b51de..80a6c0731db8b5745a996d30e62929aecbdd2cb8 100644 (file)
@@ -128,7 +128,7 @@ struct DesignPass : public Pass {
                if (copy_from_design != NULL)
                {
                        if (copy_from_design != design && argidx == args.size())
-                               cmd_error(args, argidx, "Missing selection.\n");
+                               cmd_error(args, argidx, "Missing selection.");
 
                        RTLIL::Selection sel = design->selection_stack.back();
                        if (argidx != args.size()) {
@@ -151,7 +151,7 @@ struct DesignPass : public Pass {
                extra_args(args, argidx, design, false);
 
                if (!got_mode)
-                       cmd_error(args, argidx, "Missing mode argument (-reset, -save, -load, -copy-from, or -copy-to).\n");
+                       cmd_error(args, argidx, "Missing mode argument (-reset, -save, -load, -copy-from, or -copy-to).");
 
                if (copy_to_design != NULL)
                {