From eb6940c5de843ad1b86633989c28970439c732ec Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Thu, 21 Dec 2023 13:04:33 +0100 Subject: [PATCH] Add helpful compiler errors on old import paths --- asynctest.nim | 4 ++++ asynctest/unittest2.nim | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 asynctest.nim create mode 100644 asynctest/unittest2.nim diff --git a/asynctest.nim b/asynctest.nim new file mode 100644 index 0000000..4f74474 --- /dev/null +++ b/asynctest.nim @@ -0,0 +1,4 @@ +{.error: + "As of version 0.5.0 you need to import either " & + "asynctest/asyncdispatch/unittest or " & + "asynctest/chronos/unittest depending on your choice of async framework".} diff --git a/asynctest/unittest2.nim b/asynctest/unittest2.nim new file mode 100644 index 0000000..292e9e2 --- /dev/null +++ b/asynctest/unittest2.nim @@ -0,0 +1,4 @@ +{.error: + "As of version 0.5.0 you need to import either " & + "asynctest/asyncdispatch/unittest2 or " & + "asynctest/chronos/unittest2 depending on your choice of async framework".}